Skip to content

Commit

Permalink
Try this solution for yarn2/corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWolverine committed Jan 9, 2025
1 parent 5493ec1 commit 1cc6c75
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1cc6c75

Please sign in to comment.