Browse Source

fix resolving dependencies

Yuki Takei 4 years ago
parent
commit
e0140894b8
1 changed files with 9 additions and 6 deletions
  1. 9 6
      .github/workflows/ci-app-prod.yml

+ 9 - 6
.github/workflows/ci-app-prod.yml

@@ -197,8 +197,11 @@ jobs:
         cache: 'yarn'
         cache-dependency-path: '**/yarn.lock'
 
+    # workaround by https://github.com/cypress-io/github-action/issues/407
+    - name: Setup yarn cache settings
+      run: yarn config set cache-folder ~/.cache/yarn
+
     - name: Cache/Restore node_modules
-      id: cache-dependencies
       uses: actions/cache@v2
       with:
         path: |
@@ -207,6 +210,10 @@ jobs:
         restore-keys: |
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
 
+    - name: lerna bootstrap
+      run: |
+        npx lerna bootstrap -- --frozen-lockfile
+
     - name: Download production files artifact
       uses: actions/download-artifact@v2
       with:
@@ -216,10 +223,6 @@ jobs:
       run: |
         tar -xf ${{ needs.build-prod-node14.outputs.PROD_FILES }}
 
-    # workaround by https://github.com/cypress-io/github-action/issues/407
-    - name: Setup yarn cache settings
-      run: yarn config set cache-folder ~/.cache/yarn
-
     - name: Determine spec expression
       id: determine-spec-exp
       run: |
@@ -230,7 +233,7 @@ jobs:
       uses: cypress-io/github-action@v2
       with:
         working-directory: ./packages/app
-        install-command: ${{ (steps.cache-dependencies.outputs.cache-hit == 'true' && 'yarn') || 'npx' }} lerna bootstrap
+        install: false
         spec: '${{ steps.determine-spec-exp.outputs.value }}'
         build: |
           cp config/ci/.env.local.for-ci .env.production.local