Skip to content

Commit 1e69af2

Browse files
committed
ci: tokenless OIDC trusted publishing + lockstep versions [skip ci]
Release now publishes via npm trusted publishing (id-token, no NPM_TOKEN); upgrades the runner npm to >=11.5.1 since pnpm publish delegates the upload to npm. All published packages share one version via changesets `fixed`.
1 parent 851ac02 commit 1e69af2

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.changeset/config.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
5-
"fixed": [],
5+
"fixed": [
6+
[
7+
"openislands",
8+
"@openislands/compiler",
9+
"@openislands/connector-kit",
10+
"@openislands/mcp",
11+
"@openislands/runtime",
12+
"@openislands/schema",
13+
"@openislands/storage"
14+
]
15+
],
616
"linked": [],
717
"access": "public",
818
"baseBranch": "main",

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
node-version: 22
2222
cache: pnpm
2323
registry-url: https://registry.npmjs.org
24+
# Trusted publishing (OIDC) needs npm >= 11.5.1; Node 22 bundles npm 10.
25+
# pnpm publish shells out to this npm for the actual upload.
26+
- run: npm install -g npm@latest
2427
- run: pnpm install --frozen-lockfile
2528
- name: Version and publish
2629
run: |
@@ -38,5 +41,4 @@ jobs:
3841
git push origin HEAD:main
3942
git push origin --tags
4043
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4244
NPM_CONFIG_PROVENANCE: "true"

0 commit comments

Comments
 (0)