Skip to content

Commit 5dec98a

Browse files
devallibusclaude
andcommitted
ci: use npm trusted publishing (OIDC, no token)
- Remove NODE_AUTH_TOKEN — OIDC handles auth via id-token: write - Add npm upgrade step (trusted publishing requires >= 11.5.1) - Keep --provenance flag for signed attestation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5af9e8f commit 5dec98a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/validate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ jobs:
119119
- name: Install Dependencies
120120
run: bun install --frozen-lockfile
121121

122+
- name: Upgrade npm (trusted publishing requires >= 11.5.1)
123+
run: npm install -g npm@latest
124+
122125
- name: Build CLI
123126
run: cd packages/cli && bun run build
124127

@@ -132,5 +135,3 @@ jobs:
132135
else
133136
echo "Version $LOCAL already published, skipping."
134137
fi
135-
env:
136-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)