Skip to content

Commit ee95a23

Browse files
ci: update release workflow to adopt OIDC
1 parent 0b59fd9 commit ee95a23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ jobs:
166166
needs: [rake-tasks]
167167
runs-on: ubuntu-24.04
168168
if: ${{ startsWith(github.ref, 'refs/tags/') || inputs.publish }}
169+
permissions:
170+
id-token: write # Required for OIDC
171+
contents: read
169172
steps:
170173
- uses: actions/checkout@v4
171174
- uses: actions/download-artifact@v4
@@ -176,7 +179,7 @@ jobs:
176179
path: release
177180
- uses: actions/setup-node@v4
178181
with:
179-
node-version: 16
182+
node-version: 24
180183
registry-url: https://registry.npmjs.org/
181184
- uses: ruby/setup-ruby@v1
182185
with:
@@ -187,4 +190,3 @@ jobs:
187190
- run: bundle exec rake "ci:publish[${PREREL_NAME:-$GITHUB_REF_NAME}]"
188191
env:
189192
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)