فهرست منبع

use yarn if cache hit

Yuki Takei 4 سال پیش
والد
کامیت
80472871b3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      .github/workflows/ci.yml

+ 1 - 1
.github/workflows/ci.yml

@@ -403,7 +403,7 @@ jobs:
       uses: cypress-io/github-action@v2
       uses: cypress-io/github-action@v2
       with:
       with:
         working-directory: ./packages/app
         working-directory: ./packages/app
-        install-command: npx lerna bootstrap -- --frozen-lockfile
+        install-command: ${{ (steps.cache-dependencies.outputs.cache-hit == 'true') && 'yarn') || 'npx' }} lerna bootstrap
         build: |
         build: |
           cp config/ci/.env.local.for-ci .env.production.local
           cp config/ci/.env.local.for-ci .env.production.local
         start: yarn server
         start: yarn server