Skip to content

Commit 1cc6c75

Browse files
committed
Try this solution for yarn2/corepack
actions/setup-node#480 (comment)
1 parent 5493ec1 commit 1cc6c75

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/actions/build/action.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@ name: Build Website
22
runs:
33
using: "composite"
44
steps:
5+
- name: Enable Corepack
6+
shell: bash
7+
run: corepack enable
58
- name: Set Node.js
69
uses: actions/setup-node@v4
710
with:
811
node-version: 20.x
912
cache: 'yarn'
10-
- name: Set up Yarn2
13+
- name: Install dependencies
1114
shell: bash
12-
run: |
13-
corepack enable
14-
yarn set version berry
15-
- name: Run install
16-
uses: borales/actions-yarn@v5
17-
with:
18-
cmd: install # will run `yarn install` command
19-
- name: Build production bundle
20-
uses: borales/actions-yarn@v5
21-
with:
22-
cmd: build
15+
run: yarn install --immutable
16+
- name: Run build
17+
shell: bash
18+
run: yarn build

0 commit comments

Comments
 (0)