Skip to content

Commit 5b54786

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

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/actions/build/action.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@ name: Build Website
22
runs:
33
using: "composite"
44
steps:
5+
- name: Enable Corepack
6+
run: corepack enable
7+
shell: bash
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
11-
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
13+
- name: Install dependencies
14+
run: yarn install --immutable
15+
- name: Run build
16+
run: yarn build

0 commit comments

Comments
 (0)