Skip to content

Commit ec02a58

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

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish.yml

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

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: write
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -13,7 +17,8 @@ jobs:
1317
- uses: actions/setup-node@v2
1418
with:
1519
node-version: "22.x"
20+
registry-url: "https://registry.npmjs.org"
1621
- name: Install dependencies
1722
run: npm ci
18-
23+
- run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false
1924
- run: npm publish

0 commit comments

Comments
 (0)