test(pack-up): add ENV to allow immutable installs in yarn 4 (#18814)

* test(pack-up): add ENV to allow immutable installs in yarn 4

* Revert "test(pack-up): add ENV to allow immutable installs in yarn 4"

This reverts commit 375c8949a015969797db41572c043c15d4b9f023.

* chore: go back to yarn4

* Revert "chore: go back to yarn4"

This reverts commit 1c17a48ccacba1d1a40f28191119b2d446955b16.

* chore: add env

* chore: pass it directly to exec

* Revert "chore: pass it directly to exec"

This reverts commit 36a2b7cb96e1607a312ab69faa8dc9c370c4d219.
This commit is contained in:
Josh 2023-11-16 13:51:08 +00:00 committed by GitHub
parent aba24cb6e0
commit 6dc2847fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ jobs:
name: 'unit_back (node: ${{ matrix.node }})'
needs: [changes, build]
runs-on: ubuntu-latest
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
strategy:
matrix:
node: [18, 20]

View File

@ -100,7 +100,7 @@ const spawn = async (projectName: string): Promise<Project> => {
return {
cwd: tmpPath,
install: () => execute('yarn install --no-immutable'),
install: () => execute('yarn install'),
remove: tmpRemove,
run: (cmd: string) => execute(`yarn run ${cmd}`),
};