Skip to content

Commit 40c2dab

Browse files
ralyodioclaude
andauthored
fix(release): set up pnpm with pnpm/action-setup, not corepack, on the release runners (#99)
The v3.10.1 linux build failed at the new install step while macOS passed it: `corepack enable` symlinks into /usr/local/bin, which the ubuntu runner user cannot write, and the macOS runner can. Use the same pnpm/action-setup + setup-node steps ci.yml already runs. Claude-Session: https://claude.ai/code/session_018WGZpo8on6XLGYnccXV3dP Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent ee98326 commit 40c2dab

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,18 @@ jobs:
6262
# build-release.sh stages only when it can build them. That takes pnpm and
6363
# the workspace's dev dependencies; without this step the stage is skipped
6464
# with a one-line note and every release ships without `sdk/`.
65+
# Same setup ci.yml uses. Not corepack: `corepack enable` symlinks into
66+
# /usr/local/bin, which the ubuntu runner user cannot write (EACCES), while
67+
# the macOS runner can, so the linux build failed and macOS passed.
68+
- uses: pnpm/action-setup@v6
69+
if: matrix.platform != 'windows'
70+
- uses: actions/setup-node@v5
71+
if: matrix.platform != 'windows'
72+
with:
73+
node-version-file: .nvmrc
6574
- name: Install workspace (for the automation runtime)
6675
if: matrix.platform != 'windows'
67-
run: |
68-
corepack enable
69-
corepack prepare pnpm@9.12.0 --activate
70-
pnpm install --frozen-lockfile --filter @tronbrowser/sdk...
76+
run: pnpm install --frozen-lockfile --filter @tronbrowser/sdk...
7177

7278
- name: Package (linux/macos)
7379
if: matrix.platform != 'windows'

0 commit comments

Comments
 (0)