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