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

remove unnecessary -y option when env var CI is true

Yuki Takei 4 лет назад
Родитель
Сommit
7619f0535d

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

@@ -38,7 +38,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: lerna run lint for plugins
       run: |
@@ -93,7 +93,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: yarn test
       working-directory: ./packages/app
@@ -154,7 +154,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: yarn dev:ci
       working-directory: ./packages/app

+ 4 - 4
.github/workflows/ci-slackbot-proxy.yml

@@ -38,7 +38,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: yarn lint
       run: |
@@ -96,7 +96,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: yarn dev:ci
       working-directory: ./packages/slackbot-proxy
@@ -155,7 +155,7 @@ jobs:
         ls | egrep -v '^(slack|slackbot-proxy)$' | xargs rm -r
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap
+        npx lerna bootstrap
     - name: Print dependencies
       run: |
         echo -n "node " && node -v
@@ -166,7 +166,7 @@ jobs:
         yarn lerna run build
     - name: lerna bootstrap --production
       run: |
-        npx -y lerna bootstrap -- --production
+        npx lerna bootstrap -- --production
     - name: Print dependencies
       run: |
         echo -n "node " && node -v

+ 1 - 1
.github/workflows/draft-release.yml

@@ -47,7 +47,7 @@ jobs:
       - name: Get release version
         id: release-version
         run: |
-          RELEASE_VERSION=`npx -y semver -i patch ${{ needs.update-release-draft.outputs.CURRENT_VERSION }}`
+          RELEASE_VERSION=`npx semver -i patch ${{ needs.update-release-draft.outputs.CURRENT_VERSION }}`
           echo ::set-output name=RELEASE_VERSION::$RELEASE_VERSION
 
       - name: Create/Update Pull Request

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

@@ -114,7 +114,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        npx -y lerna bootstrap
+        npx lerna bootstrap
 
     - name: Bump versions for next RC
       run: |

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

@@ -30,7 +30,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        npx -y lerna bootstrap
+        npx lerna bootstrap
 
     - name: Bump versions
       run: |
@@ -91,7 +91,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        npx -y lerna bootstrap
+        npx lerna bootstrap
 
     - name: Bump versions for next RC
       run: |

+ 3 - 6
.github/workflows/reusable-app-prod.yml

@@ -6,9 +6,6 @@ on:
       node-version:
         required: true
         type: string
-      npx-command:
-        type: string
-        default: npx -y
       skip-cypress:
         type: boolean
       cypress-report-artifact-name:
@@ -46,7 +43,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        ${{ inputs.npx-command }} lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: Remove unnecessary packages
       run: |
@@ -136,7 +133,7 @@ jobs:
 
     - name: lerna bootstrap --production
       run: |
-        ${{ inputs.npx-command }}  lerna bootstrap -- --production
+        npx lerna bootstrap -- --production
 
     - name: Download production files artifact
       uses: actions/download-artifact@v2
@@ -222,7 +219,7 @@ jobs:
         whoami
         ls -al .
         ls -al packages/app
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: Download production files artifact
       uses: actions/download-artifact@v2

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

@@ -67,7 +67,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx -y lerna bootstrap -- --frozen-lockfile
+        npx lerna bootstrap -- --frozen-lockfile
 
     - name: Download screenshots taken by cypress
       uses: actions/download-artifact@v2