From 1cc6c7515f4f670fb42cb95cdd7bdf38a1ec9e35 Mon Sep 17 00:00:00 2001 From: Brendan F Date: Thu, 9 Jan 2025 01:04:04 -0500 Subject: Try this solution for yarn2/corepack https://github.com/actions/setup-node/issues/480#issuecomment-1915448139 --- .github/actions/build/action.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 64d5129..e4e161f 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -2,21 +2,17 @@ name: Build Website runs: using: "composite" steps: + - name: Enable Corepack + shell: bash + run: corepack enable - name: Set Node.js uses: actions/setup-node@v4 with: node-version: 20.x cache: 'yarn' - - name: Set up Yarn2 + - name: Install dependencies shell: bash - run: | - corepack enable - yarn set version berry - - name: Run install - uses: borales/actions-yarn@v5 - with: - cmd: install # will run `yarn install` command - - name: Build production bundle - uses: borales/actions-yarn@v5 - with: - cmd: build + run: yarn install --immutable + - name: Run build + shell: bash + run: yarn build -- cgit v1.2.3