Skip to content

Commit 4f8b433

Browse files
committed
chore: update boilerplate release workflow to use Node.js 22.x and improve NPM publish step with trused publisher provenance and OIDC authentication.
1 parent 8316c62 commit 4f8b433

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/boilerplate-release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: write
13+
1014
steps:
1115
- uses: actions/checkout@v4
1216
with:
1317
ref: ${{ github.event.release.target_commitish }}
14-
- uses: actions/setup-node@v3
18+
19+
- uses: actions/setup-node@v4
1520
with:
16-
node-version: '20.x'
17-
registry-url: 'https://registry.npmjs.org'
21+
node-version: "22.x"
22+
registry-url: "https://registry.npmjs.org"
23+
1824
- name: Bump version
1925
run: |
2026
git config --global user.name "ReactNativeBoilerplate Bot"
2127
git config --global user.email "j.dolle.bot@thecodingmachine.com"
2228
npm --no-git-tag-version version ${{ github.event.release.name }}
29+
2330
- name: Publish to NPM
24-
run: npm publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npm publish --provenance
32+
2733
- name: Commit and push
2834
run: |
2935
git add .

0 commit comments

Comments
 (0)