fix: npm publish
This commit is contained in:
parent
18d707f8ce
commit
63f9cd6207
1 changed files with 6 additions and 3 deletions
|
@ -62,10 +62,13 @@ jobs:
|
||||||
path: lhmask
|
path: lhmask
|
||||||
name: lhmask
|
name: lhmask
|
||||||
|
|
||||||
- run: cd lhmask && npm publish --provenance --access public
|
- name: Publish to NPM (staging)
|
||||||
|
run: |
|
||||||
|
cd lhmask
|
||||||
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
||||||
|
npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
publish-production:
|
publish-production:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-and-test
|
needs: build-and-test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue