From 36f72f9521a244a7ec1e4c22245cf72c0cc8abc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20G=C3=A5sodden?= Date: Sat, 25 Apr 2020 08:29:40 +0200 Subject: [PATCH] Adds GitHub action for publish on release (patch) --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ec5ecb0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Build, Test, and Publish on release +on: + release: + types: [published] + branches: [master] +jobs: + build: + name: Build, test and publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm test + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} \ No newline at end of file