From 0f7cfa657c2755fb9e72db67aafbbc224a757f3b Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Fri, 14 Aug 2026 07:43:54 -0600 Subject: [PATCH] Replace corepack with pnpm/action-setup The pnpm team recommends against using corepack to install pnpm. The Node.js TSC has also voted to stop bundling corepack, though it still ships as of Node 26. pnpm/action-setup is the officially supported way to install pnpm in GitHub Actions. The pnpm version continues to come from the packageManager field in package.json, so there is no version duplicated into the workflows. See https://x.com/pnpmjs/status/2087964982289854928 --- .github/workflows/ci.yml | 2 +- .github/workflows/push-dist.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 420a43b..3e12a85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - - run: corepack enable + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - name: Install Node uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f with: diff --git a/.github/workflows/push-dist.yml b/.github/workflows/push-dist.yml index d0a25c9..3eac8e2 100644 --- a/.github/workflows/push-dist.yml +++ b/.github/workflows/push-dist.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - - run: corepack enable + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - name: Install Node uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db9ed90..7521e6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - - run: corepack enable + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 - name: Setup Node.js uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f