Browse Source

add --no-frozen-lockfile option to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY

Yuki Takei 1 year ago
parent
commit
75602d65a2

+ 3 - 3
.github/workflows/ci-app.yml

@@ -55,7 +55,7 @@ jobs:
       - name: Install dependencies
         run: |
           pnpm add turbo --global
-          pnpm install --frozen-lockfile
+          pnpm install
 
       - name: Lint
         run: |
@@ -109,7 +109,7 @@ jobs:
       - name: Install dependencies
         run: |
           pnpm add turbo --global
-          pnpm install --frozen-lockfile
+          pnpm install
 
       - name: Test
         run: |
@@ -173,7 +173,7 @@ jobs:
       - name: Install dependencies
         run: |
           pnpm add turbo --global
-          pnpm install --frozen-lockfile
+          pnpm install
 
       - name: turbo run launch-dev:ci
         working-directory: ./apps/app

+ 6 - 5
.github/workflows/ci-slackbot-proxy.yml

@@ -55,7 +55,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Lint
       run: |
@@ -120,7 +120,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: turbo run dev:ci
       working-directory: ./apps/slackbot-proxy
@@ -196,9 +196,9 @@ jobs:
         mv out/* .
 
     - name: Install dependencies
-      # Run pnpm install without '--frozen-lockfile' option to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
+      # Run pnpm install with `--no-frozen-lockfile` option after `turbo prune` to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
       run: |
-        pnpm install
+        pnpm install --no-frozen-lockfile
 
     - name: Restore dist
       uses: actions/cache/restore@v4
@@ -216,8 +216,9 @@ jobs:
         turbo run build
 
     - name: Install dependencies for production
+      # Run pnpm install with `--no-frozen-lockfile` option after `turbo prune` to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
       run: |
-        pnpm install --prod
+        pnpm install --no-frozen-lockfile --prod
 
     - name: pnpm run start:prod:ci
       working-directory: ./apps/slackbot-proxy

+ 1 - 1
.github/workflows/release-slackbot-proxy.yml

@@ -103,7 +103,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Bump versions for next RC
       run: |

+ 2 - 2
.github/workflows/release-subpackages.yml

@@ -38,7 +38,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Setup .npmrc
       run: |
@@ -81,7 +81,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Create Release Pull Request or Publish to npm
       id: changesets

+ 2 - 2
.github/workflows/release.yml

@@ -32,7 +32,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Bump versions
       run: |
@@ -172,7 +172,7 @@ jobs:
     - name: Install dependencies
       run: |
         pnpm add turbo --global
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Bump versions for next RC
       run: |

+ 5 - 5
.github/workflows/reusable-app-prod.yml

@@ -44,9 +44,9 @@ jobs:
         mv out/* .
 
     - name: Install dependencies
-      # Run pnpm install without '--frozen-lockfile' option to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
+      # Run pnpm install with `--no-frozen-lockfile` option after `turbo prune` to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
       run: |
-        pnpm install
+        pnpm install --no-frozen-lockfile
 
     - name: Cache/Restore dist
       uses: actions/cache@v4
@@ -146,9 +146,9 @@ jobs:
         mv out/* .
 
     - name: Install dependencies
-      # Run pnpm install without '--frozen-lockfile' option to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
+      # Run pnpm install with `--no-frozen-lockfile` option after `turbo prune` to avoid ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY
       run: |
-        pnpm install --prod
+        pnpm install --no-frozen-lockfile --prod
 
     - name: Download production files artifact
       uses: actions/download-artifact@v4
@@ -220,7 +220,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Install Playwright browsers
       run: |

+ 1 - 1
.github/workflows/reusable-app-reg-suit.yml

@@ -63,7 +63,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        pnpm install --frozen-lockfile
+        pnpm install
 
     - name: Download screenshots taken by cypress
       uses: actions/download-artifact@v4