From bedb03317df273a37ecade9abff0a82acc360beb Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Tue, 3 Nov 2026 13:27:09 -0700 Subject: [PATCH] Fix GitHub workflows to install Corepack before installing Yarn Modern versions of Node do not install Corepack by default, and Corepack is required to run modern versions of Yarn. This commit updates all GitHub workflows to ensure that Corepack is installed. --- .github/workflows/build-lint-test.yml | 5 ++++- .github/workflows/create-release-pr.yml | 1 + .github/workflows/publish-release.yml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index a138dad..cf2b39e 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: corepack enable - name: Use Node.js uses: actions/setup-node@v3 with: @@ -27,6 +28,7 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 + - run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -52,6 +54,7 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 + - run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -84,7 +87,7 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - + - run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 3c99fe8..bdbaa10 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -29,6 +29,7 @@ jobs: # We check out the specified branch, which will be used as the base # branch for all git operations and the release PR. ref: ${{ github.event.inputs.base-branch }} + - run: corepack enable - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 0ef4dc3..9e06143 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.sha }} + - run: corepack enable - name: Setup Node.js uses: actions/setup-node@v3 with: