Skip to content

Commit e0c7c03

Browse files
mariomeyerclaude
andcommitted
fix(ci): switch npm publish to OIDC provenance (repo is now public)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ea0e42b commit e0c7c03

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
permissions:
5050
contents: read
51+
id-token: write
5152
steps:
5253
- uses: actions/checkout@v4
5354

@@ -56,13 +57,14 @@ jobs:
5657
node-version: 22
5758
registry-url: https://registry.npmjs.org
5859

60+
- name: Upgrade npm
61+
run: npm install -g npm@latest
62+
5963
- name: Publish CLI to npm
6064
working-directory: cli
6165
run: |
6266
npm version ${{ needs.release.outputs.new_release_version }} --no-git-tag-version
63-
npm publish --access public
64-
env:
65-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
67+
npm publish --access public --provenance
6668
6769
# Build each platform natively per stack (no QEMU emulation)
6870
build:

0 commit comments

Comments
 (0)