Skip to content

Commit a98c934

Browse files
tianzhouclaude
andcommitted
fix: add --provenance flag to npm publish for OIDC auth
Without --provenance, npm doesn't use the GitHub OIDC token and falls back to expecting traditional auth credentials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e9400ce commit a98c934

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ jobs:
154154
package.json > package.json.tmp
155155
mv package.json.tmp package.json
156156
157-
npm publish --access public --tag "$TAG"
157+
npm publish --access public --tag "$TAG" --provenance

0 commit comments

Comments
 (0)