Skip to content

Commit 550d39d

Browse files
HerrCai0907Cai Congcong
authored andcommitted
fix release (#18)
update to OIDC
1 parent 5c9d6cf commit 550d39d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "*"
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
811
jobs:
912
publish:
1013
runs-on: ubuntu-latest
@@ -13,7 +16,8 @@ jobs:
1316
- uses: actions/setup-node@v2
1417
with:
1518
node-version: "22.x"
19+
registry-url: "https://registry.npmjs.org"
1620
- name: Install dependencies
1721
run: npm ci
18-
22+
- run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false
1923
- run: npm publish

0 commit comments

Comments
 (0)