From 11fda538fbd1034a0ff184d2cbb6b2ff5e0863cf Mon Sep 17 00:00:00 2001 From: Yoichiro Tanaka Date: Sat, 1 Jun 2024 17:30:41 +0900 Subject: [PATCH 1/2] Specify `--frozen-lockfile` option for `yarn install` command to avoid generating the yarn.lock file. --- .github/workflows/production.yaml | 2 +- .github/workflows/pullrequest.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 56471814..3939055c 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -44,7 +44,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Build and Test env: REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY }} diff --git a/.github/workflows/pullrequest.yaml b/.github/workflows/pullrequest.yaml index 9b146f20..376dbbf8 100644 --- a/.github/workflows/pullrequest.yaml +++ b/.github/workflows/pullrequest.yaml @@ -32,7 +32,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Build and Test env: REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY }} From 0563b9dc9e64d7010c47ef14707fac51f5687486 Mon Sep 17 00:00:00 2001 From: Yoichiro Tanaka Date: Sat, 1 Jun 2024 17:38:22 +0900 Subject: [PATCH 2/2] Replace the option name `--frozen-lockfile` with `--immutable`. --- .github/workflows/production.yaml | 2 +- .github/workflows/pullrequest.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 3939055c..40db9f30 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -44,7 +44,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --immutable - name: Build and Test env: REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY }} diff --git a/.github/workflows/pullrequest.yaml b/.github/workflows/pullrequest.yaml index 376dbbf8..6ddffc4f 100644 --- a/.github/workflows/pullrequest.yaml +++ b/.github/workflows/pullrequest.yaml @@ -32,7 +32,7 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --immutable - name: Build and Test env: REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY }}