Skip to content

Commit 7fa3765

Browse files
aksOpsclaude
andcommitted
ci: publish via npm OIDC trusted publishing; fix repository URL to RandomCodeSpace/lane
- publish.yml: Node 24 + npm@latest (>=11.5.1 for OIDC), drop NODE_AUTH_TOKEN and --provenance (trusted publishing authenticates via OIDC and generates provenance automatically). id-token: write retained. - package.json: repository/homepage/bugs URLs were stale (glab-tracker); point them at the renamed repo (lane). repository.url must match the GitHub repo for OIDC. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 57642b2 commit 7fa3765

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13-
id-token: write
13+
id-token: write # required for OIDC trusted publishing
1414
steps:
1515
- uses: actions/checkout@v4
1616

1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: "20"
19+
node-version: "24" # Node >= 22.14 required for trusted publishing
2020
registry-url: "https://registry.npmjs.org"
2121

22+
- name: Ensure npm >= 11.5.1 (OIDC trusted publishing)
23+
run: npm install -g npm@latest
24+
2225
- name: Install
2326
run: npm ci
2427

@@ -31,7 +34,6 @@ jobs:
3134
- name: Build
3235
run: npm run build
3336

37+
# Trusted publishing via OIDC — no NPM token, provenance is automatic.
3438
- name: Publish
35-
run: npm publish --provenance --access public
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: npm publish --access public

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"type": "module",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/RandomCodeSpace/glab-tracker.git"
8+
"url": "git+https://github.com/RandomCodeSpace/lane.git"
99
},
10-
"homepage": "https://github.com/RandomCodeSpace/glab-tracker#readme",
10+
"homepage": "https://github.com/RandomCodeSpace/lane#readme",
1111
"bugs": {
12-
"url": "https://github.com/RandomCodeSpace/glab-tracker/issues"
12+
"url": "https://github.com/RandomCodeSpace/lane/issues"
1313
},
1414
"publishConfig": {
1515
"access": "public"

0 commit comments

Comments
 (0)