Skip to content

Commit 20f4632

Browse files
authored
ci: configure release-please workflow to use trusted publishing (#162)
1 parent e9b7f07 commit 20f4632

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77

88
permissions:
9+
id-token: write # Required for OIDC
910
contents: write
1011
pull-requests: write
1112

@@ -31,6 +32,11 @@ jobs:
3132
node-version: 'lts/*'
3233
registry-url: 'https://registry.npmjs.org'
3334

35+
# Ensure npm 11.5.1 or later is installed
36+
- name: Update npm
37+
if: ${{ steps.release.outputs.release_created }}
38+
run: npm install -g npm@latest
39+
3440
- name: Install dependencies
3541
if: ${{ steps.release.outputs.release_created }}
3642
run: npm install
@@ -42,5 +48,3 @@ jobs:
4248
- name: Publish to npm
4349
if: ${{ steps.release.outputs.release_created }}
4450
run: npm publish --access public
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)