Skip to content

Commit 34fb509

Browse files
ci: switch to npm trusted publishing (OIDC), add repository field
1 parent 687cbe1 commit 34fb509

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

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

8+
permissions:
9+
contents: read
10+
id-token: write
11+
812
jobs:
913
release:
1014
name: Publish to npm
@@ -32,6 +36,4 @@ jobs:
3236
run: bun test
3337

3438
- name: Publish to npm
35-
run: npm publish --access public
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: npm publish --provenance --access public

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"module": "src/index.ts",
55
"main": "src/index.ts",
66
"type": "module",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/DEVtheOPS/opencode-plugin-otel.git"
10+
},
711
"files": [
812
"src/"
913
],

0 commit comments

Comments
 (0)