Skip to content

Commit 61d4e20

Browse files
authored
feat: update npm token setting (#746)
1 parent 2f31892 commit 61d4e20

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/npm_publish_initia_registry.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches: ["main"]
66
paths:
77
- _packages/initia-registry/package.json
8+
89
permissions:
10+
id-token: write
911
contents: read
1012

1113
jobs:
@@ -16,13 +18,11 @@ jobs:
1618
# Setup .npmrc file to publish to npm
1719
- uses: actions/setup-node@v4
1820
with:
19-
node-version: "20.x"
21+
node-version: "24"
2022
registry-url: "https://registry.npmjs.org"
2123
- run: npm ci
2224
working-directory: ./_packages/initia-registry
2325
- run: npm run build
2426
working-directory: ./_packages/initia-registry
2527
- run: npm publish
2628
working-directory: ./_packages/initia-registry
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

.github/workflows/npm_publish_types.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
paths:
77
- _packages/types/package.json
88

9+
permissions:
10+
id-token: write
11+
contents: read
12+
913
jobs:
1014
publish_types:
1115
runs-on: ubuntu-latest
@@ -14,13 +18,11 @@ jobs:
1418
# Setup .npmrc file to publish to npm
1519
- uses: actions/setup-node@v4
1620
with:
17-
node-version: "20.x"
21+
node-version: "24"
1822
registry-url: "https://registry.npmjs.org"
1923
- run: npm ci
2024
working-directory: ./_packages/types
2125
- run: npm run build
2226
working-directory: ./_packages/types
2327
- run: npm publish
2428
working-directory: ./_packages/types
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)