Skip to content

Commit e4b2d57

Browse files
committed
ci(release): provision pnpm from the pinned Nix profile
Replace pnpm/action-setup with `nix profile install --inputs-from . nixpkgs#pnpm` so the publish toolchain is pinned to the flake's locked nixpkgs (pnpm 11.1.1, identical to the dev shell) instead of a separate action's resolution, while still avoiding the full `nix develop` dev shell that made the job slow. setup-node stays solely for the npm publish configuration (registry + OIDC provenance .npmrc wiring); the locked nixpkgs node is below the engines floor, so node is sourced from setup-node. bun is not installed here — `pnpm install` downloads it via engines.runtime into node_modules/.bin, where the prepack `ensure:native-binary` script resolves it.
1 parent c918263 commit e4b2d57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ jobs:
8484
with:
8585
fetch-depth: 0
8686
persist-credentials: false
87-
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
87+
- uses: ./.github/actions/setup-nix
8888
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
8989
with:
9090
registry-url: 'https://registry.npmjs.org'
9191
node-version: lts/*
9292
package-manager-cache: false
93+
- run: nix profile install --inputs-from . nixpkgs#pnpm
9394
- run: pnpm install --frozen-lockfile
9495
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9596
with:

0 commit comments

Comments
 (0)