Fix GH action

pull/195/head
Maciej Winnicki 2020-02-03 12:39:12 +01:00
parent 34d5893694
commit b80fc8fd0c
No known key found for this signature in database
GPG Key ID: D0B924AEC4BE0E44
1 changed files with 2 additions and 3 deletions

View File

@ -9,12 +9,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm test
- run: npm run lint
- run: npm publish
if: startsWith(github.event.ref, 'refs/tags')
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
with:
args: publish --access public
NODE_AUTH_TOKEN: ${{secrets.npm_token}}