Skip to content

Commit d2d4b23

Browse files
fix(ci): upgrade to Node 24 and configure OIDC trusted publishing
- Use Node 24 with latest npm for full OIDC support - Restore registry-url (needed for OIDC auth to resolve) - Replace npm ci with npm install (lockfile not tracked) - Fix repository.url format (git+ prefix) - Add publishConfig with provenance: true
1 parent 59a1e65 commit d2d4b23

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ jobs:
1616

1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20
19+
node-version: 24
20+
registry-url: https://registry.npmjs.org
2021

21-
- run: npm ci
22+
- run: npm install -g npm@latest
23+
24+
- run: npm install
2225

2326
- run: npm publish --provenance
2427

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"license": "MIT",
2727
"repository": {
2828
"type": "git",
29-
"url": "https://github.com/Laomai-codefee/inklayer-react.git"
29+
"url": "git+https://github.com/Laomai-codefee/inklayer-react.git"
30+
},
31+
"publishConfig": {
32+
"access": "public",
33+
"provenance": true
3034
},
3135
"bugs": {
3236
"url": "https://github.com/Laomai-codefee/inklayer-react/issues"

0 commit comments

Comments
 (0)