[ci][ez] use yarn --cwd (#32650)
Run yarn install via `--cwd` instead of `working-directory` to make the labels clearer --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32650). * __->__ #32650 * #32649 * #32648
lauren committed
Mar 17, 2025 at 14:13 UTC
ca02c4bb40325c3efbc60969e9199a0c379d2d6b
6 files changed
+10
-22
.github/workflows/devtools_regression_tests.yml
+1
-2
@@ -35,8 +35,7 @@ jobs:
35
- name: Ensure clean build directory
36
run: rm -rf build
37
- 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
39
- name: Download react-devtools artifacts for base revision
40
run: |
41
git fetch origin main
.github/workflows/runtime_build_and_test.yml
+5
-10
@@ -169,8 +169,7 @@ jobs:
169
- name: Ensure clean build directory
170
run: rm -rf build
171
- run: yarn install --frozen-lockfile
172
- - run: yarn install --frozen-lockfile
173
- working-directory: compiler
172
+ - run: yarn --cwd compiler install --frozen-lockfile
173
- run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
174
175
# ----- BUILD -----
@@ -208,8 +207,7 @@ jobs:
207
- name: Ensure clean build directory
208
run: rm -rf build
209
- run: yarn install --frozen-lockfile
211
- - run: yarn install --frozen-lockfile
212
- working-directory: compiler
210
+ - run: yarn --cwd compiler install --frozen-lockfile
211
- run: yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci
212
env:
213
CI: github
@@ -287,8 +285,7 @@ jobs:
285
- name: Ensure clean build directory
286
run: rm -rf build
287
- run: yarn install --frozen-lockfile
290
- - run: yarn install --frozen-lockfile
291
- working-directory: compiler
288
+ - run: yarn --cwd compiler install --frozen-lockfile
289
- name: Restore archived build
290
uses: actions/download-artifact@v4
291
with:
@@ -438,8 +435,7 @@ jobs:
435
key: fixtures_dom-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
436
- name: Ensure clean build directory
437
run: rm -rf build
441
- - run: yarn install --frozen-lockfile
442
- working-directory: fixtures/dom
438
+ - run: yarn --cwd fixtures/dom install --frozen-lockfile
439
- name: Restore archived build
440
uses: actions/download-artifact@v4
441
with:
@@ -635,8 +631,7 @@ jobs:
631
key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
632
- name: Ensure clean build directory
633
run: rm -rf build
638
- - run: yarn install --frozen-lockfile
639
- working-directory: scripts/release
634
+ - run: yarn --cwd scripts/release install --frozen-lockfile
635
- name: Download artifacts for base revision
636
run: |
637
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=$(git rev-parse ${{ github.event.pull_request.base.sha }})
.github/workflows/runtime_commit_artifacts.yml
+1
-4
@@ -84,10 +84,7 @@ jobs:
84
- name: Ensure clean build directory
85
run: rm -rf build
86
- run: yarn install --frozen-lockfile
87
- name: yarn install (react)
88
- - run: yarn install --frozen-lockfile
89
- name: yarn install (scripts/release)
90
- working-directory: scripts/release
87
+ - run: yarn --cwd scripts/release install --frozen-lockfile
88
- name: Download artifacts for base revision
89
run: |
90
GH_TOKEN=${{ github.token }} scripts/release/download-experimental-build.js --commit=${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }}
.github/workflows/runtime_eslint_plugin_e2e.yml
+1
-2
@@ -48,8 +48,7 @@ jobs:
48
- name: Ensure clean build directory
49
run: rm -rf build
50
- run: yarn install --frozen-lockfile
51
- - run: yarn install --frozen-lockfile
52
- working-directory: compiler
51
+ - run: yarn --cwd compiler install --frozen-lockfile
52
- name: Build plugin
53
working-directory: fixtures/eslint-v${{ matrix.eslint_major }}
54
run: node build.mjs
.github/workflows/runtime_prereleases.yml
+1
-2
@@ -45,8 +45,7 @@ jobs:
45
- name: Ensure clean build directory
46
run: rm -rf build
47
- 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
49
- run: |
50
scripts/release/prepare-release-from-ci.js --skipTests -r ${{ inputs.release_channel }} --commit=${{ inputs.commit_sha }}
51
cp ./scripts/release/ci-npmrc ~/.npmrc
.github/workflows/runtime_releases_from_npm_manual.yml
+1
-2
@@ -77,8 +77,7 @@ jobs:
77
- name: Ensure clean build directory
78
run: rm -rf build
79
- 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
81
- run: cp ./scripts/release/ci-npmrc ~/.npmrc
82
- if: '${{ inputs.only_packages }}'
83
name: 'Prepare ${{ inputs.only_packages }} from NPM'