Fix publish command

pull/195/head
Maciej Winnicki 2020-02-03 13:02:09 +01:00
parent 1a9ce68c4a
commit 9e6e7ee5dc
No known key found for this signature in database
GPG Key ID: D0B924AEC4BE0E44
1 changed files with 1 additions and 4 deletions

View File

@ -9,13 +9,10 @@ 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: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
npm publish
- run: npm publish --@mthenw:registry=https://registry.npmjs.org/
if: startsWith(github.event.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}