Skip to content

Commit 65591ef

Browse files
authored
chore: oidc (#1093)
1 parent aaf456a commit 65591ef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
cache: 'yarn'
1919

2020
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
environment: Production
1011
permissions:
1112
contents: write
1213
id-token: write
@@ -22,9 +23,14 @@ jobs:
2223
- name: Use Node.js
2324
uses: actions/setup-node@v4
2425
with:
25-
node-version: 18
26+
node-version: 20
2627
cache: 'yarn'
2728

29+
- name: Upgrade npm for OIDC
30+
run: npm i -g npm@^11.5.1
31+
32+
- run: npm config set registry https://registry.npmjs.org
33+
2834
- name: Install dependencies
2935
run: yarn install --frozen-lockfile
3036

@@ -39,4 +45,3 @@ jobs:
3945
publish: yarn changeset publish
4046
env:
4147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)