Skip to content

Commit 891eb69

Browse files
committed
chore: migrate to yarn modern
1 parent 9204ee1 commit 891eb69

268 files changed

Lines changed: 35925 additions & 213275 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/run-publish-vr-screenshot/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
cache: 'yarn'
3939
node-version: '20'
4040

41-
- run: yarn install --frozen-lockfile
41+
- run: yarn install --immutable
4242
shell: bash
4343

4444
- run: yarn playwright install --with-deps

.github/workflows/bundle-size-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cache: 'yarn'
3232
node-version: '22'
3333

34-
- run: yarn install --frozen-lockfile
34+
- run: yarn install --immutable
3535

3636
- name: Build all packages & create reports (non-PR)
3737
run: yarn nx run-many -t bundle-size --nxBail

.github/workflows/bundle-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"
4141

42-
- run: yarn install --frozen-lockfile
42+
- run: yarn install --immutable
4343

4444
- name: Build packages & create reports
4545
run: yarn nx affected -t bundle-size --nxBail

.github/workflows/check-packages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ jobs:
2222
files: |
2323
yarn.lock
2424
25+
- run: yarn install --immutable
26+
if: steps.changed-files-specific.outputs.any_changed == 'true'
27+
2528
- name: Check package duplicates
2629
if: steps.changed-files-specific.outputs.any_changed == 'true'
2730
run: |
2831
echo "yarn.lock changed! Verifying package deduplication ..."
2932
30-
yarn run dedupe --list --fail
33+
yarn run dedupe --check --json
3134
3235
if [[ $? -ne 0 ]]; then
3336
echo "Your changes introduced package duplication 🚨"

.github/workflows/check-tooling.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: '22'
3030

31-
- run: yarn install --frozen-lockfile
31+
- run: yarn install --immutable
3232

3333
- run: yarn nx run scripts-executors:test -t 'smoke test'
3434

@@ -39,12 +39,31 @@ jobs:
3939
# pre-build react-jsx-runtime - as generate-api executor doesn't provide copy assets capability
4040
- run: yarn nx run react-jsx-runtime:build
4141

42+
# Generators create/remove packages and modify the lockfile, so immutable installs must be disabled
4243
- run: yarn nx g @fluentui/workspace-plugin:react-library --name hello-world --owner '@microsoft/fluentui-react-build' --kind standard --no-interactive
44+
env:
45+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4346
- run: yarn nx g @fluentui/workspace-plugin:react-component --project hello-world-preview --name Aiur --no-interactive
47+
env:
48+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4449
- run: yarn nx g @fluentui/workspace-plugin:cypress-component-configuration --project hello-world-preview --no-interactive
50+
env:
51+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4552
- run: yarn nx g @fluentui/workspace-plugin:bundle-size-configuration --project hello-world-preview --no-interactive
53+
env:
54+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4655
- run: yarn nx g @fluentui/workspace-plugin:prepare-initial-release --project hello-world-preview --phase=preview --no-interactive
56+
env:
57+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4758
- run: yarn nx g @fluentui/workspace-plugin:prepare-initial-release --project hello-world-preview --phase=stable --no-interactive
59+
env:
60+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4861
- run: yarn nx g @nx/workspace:remove --project hello-world --forceRemove --no-interactive
62+
env:
63+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4964
- run: yarn nx g @nx/workspace:remove --project hello-world-stories --forceRemove --no-interactive
65+
env:
66+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
5067
- run: yarn nx g @fluentui/workspace-plugin:tsconfig-base-all --no-interactive
68+
env:
69+
YARN_ENABLE_IMMUTABLE_INSTALLS: false

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
cache: 'yarn'
3030
node-version: '22'
3131

32-
- run: yarn install --frozen-lockfile
32+
- run: yarn install --immutable

.github/workflows/docsite-publish-ghpages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cache: 'yarn'
3030

3131
- name: Install packages
32-
run: yarn install --frozen-lockfile
32+
run: yarn install --immutable
3333

3434
- name: Install Playwright Browsers
3535
run: yarn playwright install --with-deps

.github/workflows/pr-vrt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cache: 'yarn'
4141
node-version: '22'
4242

43-
- run: yarn install --frozen-lockfile
43+
- run: yarn install --immutable
4444
- run: yarn playwright install --with-deps
4545

4646
- name: Run VR tests (generate screenshots)

.github/workflows/pr-website-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: NodeJS heap default size
4242
run: node -e 'console.log(v8.getHeapStatistics().heap_size_limit / 1024 / 1024 + " MB");'
4343

44-
- run: yarn install --frozen-lockfile
44+
- run: yarn install --immutable
4545

4646
- name: Install Playwright Browsers
4747
run: yarn playwright install --with-deps

.github/workflows/pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"
4848

49-
- run: yarn install --frozen-lockfile
49+
- run: yarn install --immutable
5050

5151
- name: Workspace lint
5252
run: |
@@ -102,7 +102,8 @@ jobs:
102102
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"
103103

104104
- run: |
105-
yarn install --frozen-lockfile
105+
yarn install --immutable
106+
- run: |
106107
yarn rit --react 17 --install-deps
107108
yarn rit --react 18 --install-deps
108109
@@ -158,7 +159,7 @@ jobs:
158159

159160
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"
160161

161-
- run: yarn install --frozen-lockfile
162+
- run: yarn install --immutable
162163

163164
- name: Install Playwright dependencies
164165
run: yarn playwright install --with-deps

0 commit comments

Comments
 (0)