Skip to content

Commit 564c148

Browse files
authored
chore: add npmjs oidc support #558
2 parents 4071f0e + 22a035a commit 564c148

7 files changed

Lines changed: 1083 additions & 1382 deletions

File tree

.github/workflows/deploy-github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
ref: ${{ matrix.branch }}
4848
- uses: actions/setup-node@v4
4949
with:
50-
node-version: 20
50+
node-version: "lts/*"
5151
- name: Install and Build Storybook
5252
run: |
5353
npm ci

.github/workflows/react-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
runs-on: ubuntu-latest
7070
permissions:
7171
contents: write
72+
id-token: write
7273
steps:
7374
- name: Checkout code
7475
uses: actions/checkout@v4
@@ -85,11 +86,9 @@ jobs:
8586
npm run build
8687
ls -la dist
8788
git pull
88-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
8989
npm run release
9090
env:
9191
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92-
NPM_TOKEN: ${{ secrets.NPMJS_TEDI_AUTH_TOKEN }}
9392

9493
merge-to-rc:
9594
needs: build-and-deploy

.github/workflows/react-test-and-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767

6868
- name: Set up Node
6969
uses: actions/setup-node@v4
70+
with:
71+
node-version: "lts/*"
7072

7173
- name: Install dependencies
7274
run: |
@@ -102,6 +104,8 @@ jobs:
102104

103105
- name: Set up Node
104106
uses: actions/setup-node@v4
107+
with:
108+
node-version: "lts/*"
105109

106110
- name: Install dependencies
107111
run: |

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# .npmrc
2-
engine-strict=true
3-
always-auth=true
2+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v24

0 commit comments

Comments
 (0)