Skip to content

Commit e867e98

Browse files
committed
chore: use oidc publish
Signed-off-by: Kevin Cui <bh@bugs.cc>
1 parent ec8cb02 commit e867e98

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yaml

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

8+
permissions:
9+
id-token: write
10+
contents: write
11+
812
jobs:
913
release:
1014
runs-on: ubuntu-latest
@@ -50,6 +54,5 @@ jobs:
5054

5155
- name: Publish
5256
run: |
53-
pnpm publish --access public --no-git-checks
54-
env:
55-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
npm publish --access public
58+

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"bin": {
1010
"oopm": "dist/bin.js"
1111
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/oomol-lab/oopm"
15+
},
1216
"publishConfig": {
1317
"main": "dist/index.cjs",
1418
"module": "dist/index.js",

0 commit comments

Comments
 (0)