Skip to content

Commit f93be59

Browse files
mainframevclaude
andcommitted
chore(ci): scope YARN_ENABLE_IMMUTABLE_INSTALLS to generator steps only
Move YARN_ENABLE_IMMUTABLE_INSTALLS: false from global workflow env to individual generator steps that actually need it. The global env contradicted the explicit --immutable flag on yarn install, making the intent unclear. Now the install is unambiguously immutable, and only NX generators (which create/remove packages and modify the lockfile) opt out. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d0f05c5 commit f93be59

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/check-tooling.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
__FORCE_API_MD_UPDATE__: true
1212
__FORCE_SNAPSHOT_UPDATE__: true
1313
NX_VERBOSE_LOGGING: true
14-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
1514

1615
jobs:
1716
check-tools:
@@ -40,12 +39,31 @@ jobs:
4039
# pre-build react-jsx-runtime - as generate-api executor doesn't provide copy assets capability
4140
- run: yarn nx run react-jsx-runtime:build
4241

42+
# Generators create/remove packages and modify the lockfile, so immutable installs must be disabled
4343
- 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
4446
- 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
4549
- run: yarn nx g @fluentui/workspace-plugin:cypress-component-configuration --project hello-world-preview --no-interactive
50+
env:
51+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4652
- run: yarn nx g @fluentui/workspace-plugin:bundle-size-configuration --project hello-world-preview --no-interactive
53+
env:
54+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4755
- 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
4858
- 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
4961
- run: yarn nx g @nx/workspace:remove --project hello-world --forceRemove --no-interactive
62+
env:
63+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
5064
- run: yarn nx g @nx/workspace:remove --project hello-world-stories --forceRemove --no-interactive
65+
env:
66+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
5167
- run: yarn nx g @fluentui/workspace-plugin:tsconfig-base-all --no-interactive
68+
env:
69+
YARN_ENABLE_IMMUTABLE_INSTALLS: false

0 commit comments

Comments
 (0)