Skip to content

Commit 12f4c5c

Browse files
authored
chore: update release.yml for oidc publishing (#619)
1 parent 659d904 commit 12f4c5c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
environment: Production
1112
permissions:
1213
contents: write
1314
id-token: write
@@ -20,10 +21,15 @@ jobs:
2021
steps:
2122
- uses: actions/checkout@v4
2223
with:
23-
token: ${{ secrets.CHANGESETS_TOKEN }}
24+
token: ${{ secrets.GITHUB_TOKEN }}
2425

2526
- uses: ./.github/actions/setup
2627

28+
- name: Upgrade npm for OIDC
29+
run: npm i -g npm@^11.5.1
30+
31+
- run: npm config set registry https://registry.npmjs.org
32+
2733
- name: Build
2834
run: yarn run build
2935

@@ -34,5 +40,4 @@ jobs:
3440
version: yarn run version
3541
publish: yarn run changeset publish
3642
env:
37-
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)