File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed
Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [main, master]
88
9+ permissions :
10+ contents : write
11+
912jobs :
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
You can’t perform that action at this time.
0 commit comments