Skip to content

Commit 115a9bf

Browse files
committed
Update release workflow to use trusted OIDC publishing
1 parent 5513d00 commit 115a9bf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,21 @@ jobs:
2020
group: release-${{ github.repository }}-${{ github.ref_name }}
2121
cancel-in-progress: false
2222
environment: release
23+
permissions:
24+
contents: write
25+
id-token: write
2326

2427
steps:
2528
- name: Checkout code
2629
uses: actions/checkout@v6
2730
with:
2831
persist-credentials: false
2932

30-
- name: Setup Node.js version
33+
- name: Set up Node.js version
3134
uses: actions/setup-node@v6
3235
with:
33-
node-version: 22
36+
node-version: 24
37+
registry-url: 'https://registry.npmjs.org/'
3438

3539
- name: Enable yarn
3640
run: corepack enable
@@ -44,9 +48,6 @@ jobs:
4448
git config user.email "[email protected]"
4549
git config --global url.https://${{ secrets.RELEASE_GITHUB_TOKEN }}@github.com/.insteadOf https://github.com/
4650
47-
- name: Configure npm
48-
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.RELEASE_NPM_TOKEN }}
49-
5051
- name: Generate release
5152
env:
5253
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

.release-it.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
]
2020
},
2121
"npm": {
22-
"publish": true
22+
"publish": true,
23+
"skipChecks": true
2324
}
2425
}

0 commit comments

Comments
 (0)