Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/npm-trusted-publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ git push
That workflow includes:

- `permissions.id-token: write`
- npm CLI upgraded to latest (≥ `11.5.1` required for OIDC)
- Node `24.14`
- Node `24.14` (ships npm ≥ `11.5.1`, which is enough for OIDC — do **not** `npm i -g npm@latest`; npm 12 needs Node ≥ `24.15`)
- **No** `NPM_TOKEN` on the publish step
- Package `repository.url` points at `https://github.com/effect-app/libs.git` (set in package.json)

Expand Down
13 changes: 6 additions & 7 deletions .github/release.oidc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Intended contents of .github/workflows/release.yaml for npm Trusted Publishing (OIDC).
# Apply with: cp .github/release.oidc.yaml .github/workflows/release.yaml
# (Bot cannot push workflow file updates; a maintainer must apply this once.)
# Canonical Changesets workflow using npm Trusted Publishing (OIDC).
# Live path: .github/workflows/release.yaml
# If they diverge, prefer this file and copy:
# cp .github/release.oidc.yaml .github/workflows/release.yaml
name: Changesets
on:
push:
Expand Down Expand Up @@ -34,13 +35,11 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
# Keep on a Node line that ships npm >= 11.5.1 (OIDC trusted publishing).
# Do not `npm i -g npm@latest` here: npm 12 requires Node ^24.15 / ^22.22.
node-version: 24.14
registry-url: https://registry.npmjs.org

# Trusted publishing requires npm CLI >= 11.5.1
- name: Ensure npm supports OIDC trusted publishing
run: npm install -g npm@latest && npm --version

- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
Expand Down
Loading