Skip to content

Commit 6cf2659

Browse files
koki-developclaude
andcommitted
chore: Update npm publish workflow to use OIDC authentication
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 78d9f9f commit 6cf2659

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/release-please.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
permissions:
3939
contents: read
40+
id-token: write
4041
if: ${{ needs.release-please.outputs.should-release == 'true' }}
4142
steps:
4243
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -46,12 +47,5 @@ jobs:
4647
- uses: ./.github/actions/setup
4748

4849
- name: Create .npmrc
49-
run: |
50-
(
51-
# shellcheck disable=SC2016
52-
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'
53-
echo 'registry=https://registry.npmjs.org'
54-
) > .npmrc
50+
run: echo 'registry=https://registry.npmjs.org' > .npmrc
5551
- run: npm publish
56-
env:
57-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)