gh-actions npm provenance

This commit is contained in:
Miguel Mota
2025-03-06 21:57:54 -08:00
parent 105d42cd8a
commit 3ed6c4e777

View File

@@ -56,9 +56,9 @@ jobs:
run: |
if [[ "${{ github.event.inputs.dry_run }}" == "true" ]]; then
echo "DRY RUN: Would publish to npm"
npm publish --dry-run
npm publish --provenance --publish-branch=master --access=public --dry-run
else
npm publish
npm publish --provenance --publish-branch=master --access=public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}