Skip to content

Commit 76ee448

Browse files
authored
fix(chromatic): deploy script with yarn 4.5.0. (#4578)
1 parent 17d227f commit 76ee448

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/chromatic.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,20 @@ jobs:
1717
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0 # Required to retrieve git history
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22 # Yarn 4 requires Node.js >= 18
25+
26+
- name: Enable Corepack
27+
run: corepack enable
28+
29+
- name: Use Yarn 4.5.0
30+
run: corepack prepare yarn@4.5.0 --activate
31+
2032
- name: Install dependencies
21-
run: yarn install --frozen-lockfile
33+
run: yarn install --immutable
2234
# Adds Chromatic as a step in the workflow
2335
- name: Publish to Chromatic
2436
uses: chromaui/action@v1

0 commit comments

Comments
 (0)