From c816a45148c57b301ee3fdf6b6b568ff42d5ddba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20G=C3=A5sodden?= Date: Sat, 18 Apr 2020 21:12:04 +0200 Subject: [PATCH] Add GitHub Action for publish on release (patch) --- .github/workflows/release.yml | 20 ++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 20 insertions(+), 7 deletions(-) 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..f58a2ec --- /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: 10 + 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 diff --git a/.travis.yml b/.travis.yml index 7810188..b61e1d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,3 @@ node_js: - "10" after_success: - npm run coveralls -deploy: - provider: npm - email: $NPM_EMAIL - api_key: $NPM_TOKEN - on: - tags: true - branch: master \ No newline at end of file