Skip to content

Commit 6477333

Browse files
committed
fix: remove provenance flag from npm publish command and adjust environment variable usage
1 parent a1d546c commit 6477333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
environment: npm
1515
env:
1616
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
NPM_CONFIG_PROVENANCE: ${{ github.event.repository.private && 'false' || 'true' }}
1718
permissions:
1819
contents: read
1920
id-token: write
@@ -41,6 +42,6 @@ jobs:
4142

4243
- name: Publish with token fallback
4344
if: ${{ env.NPM_TOKEN != '' }}
44-
run: npm publish --provenance --access public
45+
run: npm publish --access public
4546
env:
4647
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}

0 commit comments

Comments
 (0)