fix: npm publish
Some checks are pending
CI Pipeline / publish-production (push) Blocked by required conditions
CI Pipeline / build-and-test (push) Successful in 1m11s
CI Pipeline / publish-staging (push) Successful in 20s

This commit is contained in:
Leandro Costa 2025-05-25 12:19:52 -03:00
parent 18d707f8ce
commit 63f9cd6207

View file

@ -62,10 +62,13 @@ jobs:
path: 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:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-production:
runs-on: ubuntu-latest
needs: build-and-test