Skip to content

Commit cfcd32d

Browse files
authored
CI
1 parent 21df491 commit cfcd32d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ on: push
44

55
permissions:
66
contents: read
7-
id-token: write # 必需:允许生成 OIDC id-token
7+
id-token: write
88

99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414

15-
- name: Setup Node
16-
uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v6
1716
with:
18-
node-version: 20
17+
node-version: '24'
1918
registry-url: 'https://registry.npmjs.org'
20-
21-
- name: npm OIDC publish
22-
run: npm publish
19+
- run: npm ci
20+
- run: npm publish

0 commit comments

Comments
 (0)