Skip to content

Commit 3ab7b4b

Browse files
chore(ci): update to yarn 4
1 parent 82f84ab commit 3ab7b4b

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: '20'
20-
- run: yarn install --frozen-lockfile
20+
- run: corepack enable
21+
- run: yarn install --immutable
2122
- name: generate
2223
run: cd packages/module && yarn generate
2324
- name: Build dist
@@ -38,7 +39,7 @@ jobs:
3839
- uses: actions/setup-node@v1
3940
with:
4041
node-version: '20'
41-
- run: yarn install --frozen-lockfile
42+
- run: yarn install --immutable
4243
- name: ESLint
4344
run: yarn lint:js
4445
- name: MDLint
@@ -60,7 +61,7 @@ jobs:
6061
- uses: actions/setup-node@v1
6162
with:
6263
node-version: '20'
63-
- run: yarn install --frozen-lockfile
64+
- run: yarn install --immutable
6465
- name: generate
6566
run: cd packages/module && yarn generate
6667
- name: Build dist
@@ -84,7 +85,7 @@ jobs:
8485
- uses: actions/setup-node@v1
8586
with:
8687
node-version: '20'
87-
- run: yarn install --frozen-lockfile
88+
- run: yarn install --immutable
8889
- name: generate
8990
run: cd packages/module && yarn generate
9091
- name: Build dist

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/setup-node@v1
2121
with:
2222
node-version: '20'
23-
- run: yarn install --frozen-lockfile
23+
- run: corepack enable
24+
- run: yarn install --immutable
2425
- name: Build dist
2526
run: yarn build

.github/workflows/pr-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- uses: actions/setup-node@v1
2525
with:
2626
node-version: '20'
27-
- run: yarn install --frozen-lockfile
27+
- run: corepack enable
28+
- run: yarn install --immutable
2829
- run: yarn lint:js
2930
name: Lint JS
3031
if: always()

.github/workflows/promote.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Build for promotion
17-
run: yarn install --frozen-lockfile && yarn build
1816
- uses: actions/setup-node@v3
1917
with:
2018
node-version: '20'
2119
registry-url: 'https://registry.npmjs.org'
20+
- run: corepack enable
21+
- name: Build for promotion
22+
run: yarn install --frozen-lockfile && yarn build
2223
- name: GitHub Tag Name example
2324
run: |
2425
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: '20'
20-
- run: yarn install --frozen-lockfile
20+
- run: corepack enable
21+
- run: yarn install --immutable
2122
- name: generate
2223
run: cd packages/module && yarn generate
2324
- name: Build dist

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@
6363
"typedoc": "0.23",
6464
"@types/react": "^18"
6565
},
66-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
66+
"packageManager": "yarn@4.10.3"
6767
}

0 commit comments

Comments
 (0)