Skip to content

Commit 699f95e

Browse files
committed
ci: remove global yarn install step and use --immutable
1 parent 4c02197 commit 699f95e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
- uses: nrwl/nx-set-shas@v2
2727
with:
2828
main-branch-name: 'master'
29-
- name: Setup global dependencies
30-
run: npm i -g yarn
3129
- name: yarn install
32-
run: yarn
30+
run: yarn --immutable
3331
- name: Lint affected
3432
run: yarn nx affected:lint
3533
build:
@@ -49,9 +47,7 @@ jobs:
4947
- uses: nrwl/nx-set-shas@v2
5048
with:
5149
main-branch-name: 'master'
52-
- name: Setup global dependencies
53-
run: npm i -g yarn
5450
- name: yarn install
55-
run: yarn
51+
run: yarn --immutable
5652
- name: Build.all affected
5753
run: yarn nx affected --target=build.all

0 commit comments

Comments
 (0)