From 20b175fcd5f49e77b4f77e0a2dc1b3f236afde06 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Thu, 27 Jul 2023 11:06:29 -0400 Subject: [PATCH] [ci] Pass correct flags to yarn install Turns out `--immutable` and `--immutable-cache` are for yarn 2, yarn 1.x needs to use the `--frozen-lockfile` flag instead --- compiler/.github/workflows/ci.yml | 2 +- compiler/.github/workflows/react.yml | 4 ++-- compiler/.github/workflows/test262.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/.github/workflows/ci.yml b/compiler/.github/workflows/ci.yml index da6a636ad9..f1cc28e7a6 100644 --- a/compiler/.github/workflows/ci.yml +++ b/compiler/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: node-version: 18.x cache: "yarn" cache-dependency-path: forget/yarn.lock - - run: yarn install --immutable --immutable-cache + - run: yarn install --frozen-lockfile working-directory: forget - run: yarn build working-directory: forget diff --git a/compiler/.github/workflows/react.yml b/compiler/.github/workflows/react.yml index 7116a635a2..7f188ceda4 100644 --- a/compiler/.github/workflows/react.yml +++ b/compiler/.github/workflows/react.yml @@ -15,11 +15,11 @@ jobs: node-version: 18.x cache: "yarn" cache-dependency-path: forget/yarn.lock - - run: yarn install --immutable --immutable-cache + - run: yarn install --frozen-lockfile working-directory: forget - run: yarn workspace babel-plugin-react-forget run build working-directory: forget - - run: yarn install --ci + - run: yarn install --frozen-lockfile working-directory: react - run: yarn test --ci working-directory: react diff --git a/compiler/.github/workflows/test262.yml b/compiler/.github/workflows/test262.yml index 53f2f4f999..8c3f5e971f 100644 --- a/compiler/.github/workflows/test262.yml +++ b/compiler/.github/workflows/test262.yml @@ -16,7 +16,7 @@ jobs: node-version: 18.x cache: "yarn" cache-dependency-path: forget/yarn.lock - - run: yarn install --immutable --immutable-cache + - run: yarn install --frozen-lockfile working-directory: forget - run: yarn workspace babel-plugin-react-forget run build working-directory: forget