Просмотр исходного кода

support both npx command for 14.x and 16.x

Yuki Takei 4 лет назад
Родитель
Сommit
4174a32864
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      .github/workflows/ci-app-prod.yml
  2. 4 1
      .github/workflows/reusable-app-prod.yml

+ 1 - 0
.github/workflows/ci-app-prod.yml

@@ -13,6 +13,7 @@ jobs:
     uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
     with:
       node-version: 14.x
+      npx-command: npx
       skip-cypress: true
     secrets:
       SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

+ 4 - 1
.github/workflows/reusable-app-prod.yml

@@ -6,6 +6,9 @@ on:
       node-version:
         required: true
         type: string
+      npx-command:
+        type: string
+        default: npx -y
       skip-cypress:
         type: boolean
       cypress-report-artifact-name:
@@ -43,7 +46,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        ${{ inputs.npx-command }} lerna bootstrap -- --frozen-lockfile
 
     - name: Remove unnecessary packages
       run: |