Skip to content

Commit c9e1a60

Browse files
authored
Use trusted publishing for release CI (#906)
1 parent e2b1245 commit c9e1a60

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,24 @@ on:
1212

1313
concurrency: ${{ github.workflow }}-${{ github.ref }}
1414

15+
permissions:
16+
id-token: write # Required for OIDC
17+
contents: write # Required to create GH releases
18+
pull-requests: write # Required to interact with PRs
19+
1520
jobs:
1621
release:
1722
name: Release
1823
runs-on: ubuntu-latest
1924
steps:
20-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2126
with:
2227
lfs: true
2328
- uses: pnpm/action-setup@v4
2429
- name: Use Node.js 20
25-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@v6
2631
with:
27-
node-version: 20
32+
node-version: 24
2833
cache: pnpm
2934
- name: Install dependencies
3035
run: pnpm install --frozen-lockfile
@@ -35,7 +40,6 @@ jobs:
3540
publish: pnpm ci:publish
3641
env:
3742
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3943
- name: Build docs
4044
if: steps.changesets.outputs.published == 'true'
4145
run: pnpm doc
@@ -45,4 +49,4 @@ jobs:
4549
env:
4650
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
4751
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
48-
AWS_DEFAULT_REGION: "us-east-1"
52+
AWS_DEFAULT_REGION: 'us-east-1'

0 commit comments

Comments
 (0)