Skip to content

Commit 99cb258

Browse files
committed
[ci][ez] use yarn --cwd
Run yarn install via `--cwd` instead of `working-directory` to make the labels clearer
1 parent 4eaaba2 commit 99cb258

5 files changed

+9
-18
lines changed

Diff for: .github/workflows/devtools_regression_tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
- name: Ensure clean build directory
3636
run: rm -rf build
3737
- run: yarn install --frozen-lockfile
38-
- run: yarn install --frozen-lockfile
39-
working-directory: scripts/release
38+
- run: yarn --cwd scripts/release install --frozen-lockfile
4039
- name: Download react-devtools artifacts for base revision
4140
run: |
4241
git fetch origin main

Diff for: .github/workflows/runtime_build_and_test.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ jobs:
169169
- name: Ensure clean build directory
170170
run: rm -rf build
171171
- run: yarn install --frozen-lockfile
172-
- run: yarn install --frozen-lockfile
173-
working-directory: compiler
172+
- run: yarn --cwd compiler install --frozen-lockfile
174173
- run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
175174

176175
# ----- BUILD -----
@@ -208,8 +207,7 @@ jobs:
208207
- name: Ensure clean build directory
209208
run: rm -rf build
210209
- run: yarn install --frozen-lockfile
211-
- run: yarn install --frozen-lockfile
212-
working-directory: compiler
210+
- run: yarn --cwd compiler install --frozen-lockfile
213211
- run: yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci
214212
env:
215213
CI: github
@@ -287,8 +285,7 @@ jobs:
287285
- name: Ensure clean build directory
288286
run: rm -rf build
289287
- run: yarn install --frozen-lockfile
290-
- run: yarn install --frozen-lockfile
291-
working-directory: compiler
288+
- run: yarn --cwd compiler install --frozen-lockfile
292289
- name: Restore archived build
293290
uses: actions/download-artifact@v4
294291
with:
@@ -438,8 +435,7 @@ jobs:
438435
key: fixtures_dom-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
439436
- name: Ensure clean build directory
440437
run: rm -rf build
441-
- run: yarn install --frozen-lockfile
442-
working-directory: fixtures/dom
438+
- run: yarn --cwd fixtures/dom install --frozen-lockfile
443439
- name: Restore archived build
444440
uses: actions/download-artifact@v4
445441
with:
@@ -635,8 +631,7 @@ jobs:
635631
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
636632
- name: Ensure clean build directory
637633
run: rm -rf build
638-
- run: yarn install --frozen-lockfile
639-
working-directory: scripts/release
634+
- run: yarn --cwd scripts/release install --frozen-lockfile
640635
- name: Download artifacts for base revision
641636
run: |
642637
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=$(git rev-parse ${{ github.event.pull_request.base.sha }})

Diff for: .github/workflows/runtime_eslint_plugin_e2e.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ jobs:
4848
- name: Ensure clean build directory
4949
run: rm -rf build
5050
- run: yarn install --frozen-lockfile
51-
- run: yarn install --frozen-lockfile
52-
working-directory: compiler
51+
- run: yarn --cwd compiler install --frozen-lockfile
5352
- name: Build plugin
5453
working-directory: fixtures/eslint-v${{ matrix.eslint_major }}
5554
run: node build.mjs

Diff for: .github/workflows/runtime_prereleases.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
- name: Ensure clean build directory
4646
run: rm -rf build
4747
- run: yarn install --frozen-lockfile
48-
- run: yarn install --frozen-lockfile
49-
working-directory: scripts/release
48+
- run: yarn --cwd scripts/release install --frozen-lockfile
5049
- run: |
5150
scripts/release/prepare-release-from-ci.js --skipTests -r ${{ inputs.release_channel }} --commit=${{ inputs.commit_sha }}
5251
cp ./scripts/release/ci-npmrc ~/.npmrc

Diff for: .github/workflows/runtime_releases_from_npm_manual.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
- name: Ensure clean build directory
7878
run: rm -rf build
7979
- run: yarn install --frozen-lockfile
80-
- run: yarn install --frozen-lockfile
81-
working-directory: scripts/release
80+
- run: yarn --cwd scripts/release install --frozen-lockfile
8281
- run: cp ./scripts/release/ci-npmrc ~/.npmrc
8382
- if: '${{ inputs.only_packages }}'
8483
name: 'Prepare ${{ inputs.only_packages }} from NPM'

0 commit comments

Comments
 (0)