fix(ci): set NPM_CONFIG_PROVENANCE to true

This commit is contained in:
Lucas Nogueira 2024-08-17 00:15:00 -03:00
parent 07a5f505d9
commit 85c2d6302e
No known key found for this signature in database
GPG Key ID: 7C32FCA95C8C95D7
3 changed files with 5 additions and 3 deletions

View File

@ -113,8 +113,8 @@
"pipe": true
},
{
"command": "pnpm publish --access public --loglevel silly --tag next --provenance --no-git-checks",
"dryRunCommand": "npm publish --dry-run --access public --provenance --no-git-checks",
"command": "pnpm publish --access public --loglevel silly --tag next --no-git-checks",
"dryRunCommand": "npm publish --dry-run --access public --no-git-checks",
"pipe": true
},
{

View File

@ -92,6 +92,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }}
NPM_CONFIG_PROVENANCE: true
with:
command: 'version-or-publish'
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -390,8 +390,9 @@ jobs:
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next --provenance
npm publish --tag next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
RELEASE_ID: ${{ github.event.client_payload.releaseId || inputs.releaseId }}
NPM_CONFIG_PROVENANCE: true