Skip to content

Commit 9855887

Browse files
committed
fix: обновить конфигурацию GitHub Actions для использования Corepack и Yarn 4.10.3
1 parent 6c92ed3 commit 9855887

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.github/workflows/build-check.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: "20"
21+
cache: "yarn"
22+
cache-dependency-path: yarn.lock
2123

22-
- name: Install Yarn
23-
run: npm install -g yarn
24+
- name: Enable Corepack
25+
run: corepack enable
2426

25-
- name: Yarn 4.9.2
26-
run: yarn set version 4.9.2
27+
- name: Activate Yarn 4
28+
run: corepack prepare yarn@4.10.3 --activate
2729

2830
- name: Install dependencies
29-
run: yarn install --frozen-lockfile
31+
run: yarn install --immutable
3032

3133
- name: Type check
32-
run: yarn tsc --noEmit
34+
run: yarn type-check
3335

3436
- name: Build check
3537
run: yarn build

.github/workflows/deploy-storybook.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main, master]
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
build-and-deploy:
1114
runs-on: ubuntu-latest
@@ -18,18 +21,20 @@ jobs:
1821
uses: actions/setup-node@v4
1922
with:
2023
node-version: "20"
24+
cache: "yarn"
25+
cache-dependency-path: yarn.lock
2126

22-
- name: Install Yarn
23-
run: npm install -g yarn
27+
- name: Enable Corepack
28+
run: corepack enable
2429

25-
- name: Yarn 4.9.2
26-
run: yarn set version 4.9.2
30+
- name: Activate Yarn 4
31+
run: corepack prepare yarn@4.10.3 --activate
2732

2833
- name: Install dependencies
29-
run: yarn install --frozen-lockfile
34+
run: yarn install --immutable
3035

3136
- name: Type check
32-
run: yarn tsc --noEmit
37+
run: yarn type-check
3338

3439
- name: Build check
3540
run: yarn build

0 commit comments

Comments
 (0)