Fix NPM publish in CI (#50)

This commit is contained in:
Fabrizio Ferrai 2021-04-20 16:10:29 +03:00 committed by GitHub
parent d8624318c4
commit b25fc1adce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -49,4 +49,7 @@ jobs:
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}
run: npm publish --non-interactive --access public
run: |
mv ci-npmrc.txt .npmrc
npm ci
npm publish --non-interactive --access public

4
ci-npmrc.txt Normal file
View File

@ -0,0 +1,4 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true