Skip to content

Commit 55a2e4d

Browse files
committed
chore: pin Yarn via corepack in release and deploy workflows
The release and deploy-website workflows used threeal/setup-yarn-action with version: berry, which downloads the latest Yarn (4.17.0) and ignores the packageManager: yarn@4.14.1 pin. The newer Yarn migrates the lockfile metadata from 9 to 10, so the install fails with YN0028 (lockfile would be modified), breaking the release of the previously merged change. Use corepack with the pinned version, matching the build/test setup action. deploy-website now installs deps explicitly since the removed action handled it.
1 parent 3a8dee2 commit 55a2e4d

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
- name: Setup Pages
3131
uses: actions/configure-pages@v4
3232

33-
- name: Setup Latest Yarn
34-
uses: threeal/setup-yarn-action@v2.0.0
35-
with:
36-
version: berry
37-
cache: false
33+
- name: Enable Corepack
34+
run: corepack enable
35+
36+
- name: Install dependencies
37+
run: yarn install --immutable
3838

3939
- name: Build project
4040
env:

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ jobs:
3636
node-version: "22"
3737
registry-url: "https://registry.npmjs.org"
3838

39-
- name: Setup Latest Yarn
40-
uses: threeal/setup-yarn-action@v2.0.0
41-
with:
42-
version: berry
43-
cache: false
39+
- name: Enable Corepack
40+
run: corepack enable
4441

4542
- name: Install dependencies
46-
run: yarn install
43+
run: yarn install --immutable
4744

4845
- name: Build
4946
run: yarn build

0 commit comments

Comments
 (0)