Skip to content

Commit 0ab9a2a

Browse files
devallibusclaude
andcommitted
ci: switch npm publish to trusted publishing (OIDC provenance)
Replace NPM_TOKEN with --provenance flag for npm trusted publishing. Auth is handled via GitHub Actions OIDC, no secret needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e25a803 commit 0ab9a2a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/validate.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ jobs:
128128
CURRENT=$(npm view @shaderbase/cli version 2>/dev/null || echo "0.0.0")
129129
LOCAL=$(node -p "require('./package.json').version")
130130
if [ "$CURRENT" != "$LOCAL" ]; then
131-
npm publish --access public
131+
npm publish --access public --provenance
132132
else
133133
echo "Version $LOCAL already published, skipping."
134134
fi
135-
env:
136-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)