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

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

@@ -38,7 +38,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y lerna bootstrap -- --frozen-lockfile
 
     - name: lerna run lint for plugins
       run: |
@@ -93,7 +93,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y lerna bootstrap -- --frozen-lockfile
 
     - name: yarn test
       working-directory: ./packages/app
@@ -154,7 +154,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y 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 lerna bootstrap -- --frozen-lockfile
+        npx -y lerna bootstrap -- --frozen-lockfile
 
     - name: yarn lint
       run: |
@@ -96,7 +96,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y 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 lerna bootstrap
+        npx -y 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 lerna bootstrap -- --production
+        npx -y 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 semver -i patch ${{ needs.update-release-draft.outputs.CURRENT_VERSION }}`
+          RELEASE_VERSION=`npx -y 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 lerna bootstrap
+        npx -y 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 lerna bootstrap
+        npx -y lerna bootstrap
 
     - name: Bump versions
       run: |
@@ -91,7 +91,7 @@ jobs:
 
     - name: Install dependencies
       run: |
-        npx lerna bootstrap
+        npx -y lerna bootstrap
 
     - name: Bump versions for next RC
       run: |

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

@@ -43,7 +43,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y lerna bootstrap -- --frozen-lockfile
 
     - name: Remove unnecessary packages
       run: |
@@ -133,7 +133,7 @@ jobs:
 
     - name: lerna bootstrap --production
       run: |
-        npx lerna bootstrap -- --production
+        npx -y lerna bootstrap -- --production
 
     - name: Download production files artifact
       uses: actions/download-artifact@v2
@@ -216,7 +216,7 @@ jobs:
 
     - name: lerna bootstrap
       run: |
-        npx lerna bootstrap -- --frozen-lockfile
+        npx -y 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 lerna bootstrap -- --frozen-lockfile
+        npx -y lerna bootstrap -- --frozen-lockfile
 
     - name: Download screenshots taken by cypress
       uses: actions/download-artifact@v2

+ 2 - 2
packages/app/docker/Dockerfile

@@ -31,7 +31,7 @@ COPY --from=packages-json-picker ${optDir} .
 
 # setup
 RUN yarn config set network-timeout 300000
-RUN npx lerna bootstrap -- --frozen-lockfile
+RUN npx -y lerna bootstrap -- --frozen-lockfile
 
 # make artifacts
 RUN tar -cf node_modules.tar \
@@ -48,7 +48,7 @@ FROM deps-resolver AS deps-resolver-prod
 # remove unnecessary packages
 RUN rm -rf packages/slackbot-proxy
 
-RUN npx lerna bootstrap -- --production
+RUN npx -y lerna bootstrap -- --production
 # make artifacts
 RUN tar -cf node_modules.tar \
   node_modules \

+ 3 - 3
packages/app/package.json

@@ -8,9 +8,9 @@
     "build": "run-p build:*",
     "build:client": "yarn cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
     "build:server": "yarn cross-env NODE_ENV=production tsc -p tsconfig.build.server.json && tsc-alias -p tsconfig.build.server.json",
-    "clean": "npx shx rm -rf dist transpiled",
+    "clean": "npx -y shx rm -rf dist transpiled",
     "prebuild": "yarn cross-env NODE_ENV=production run-p clean resources:*",
-    "postbuild": "npx shx mv transpiled/src dist && npx shx cp -r src/server/views dist/server/ && npx shx rm -rf transpiled",
+    "postbuild": "npx -y shx mv transpiled/src dist && npx -y shx cp -r src/server/views dist/server/ && npx -y shx rm -rf transpiled",
     "server": "yarn cross-env NODE_ENV=production node -r dotenv-flow/config --expose_gc dist/server/app.js",
     "server:ci": "yarn server --ci",
     "preserver": "yarn cross-env NODE_ENV=production yarn migrate",
@@ -32,7 +32,7 @@
     "//// for CI": "",
     "dev:ci": "yarn dev:client:nowatch && yarn dev:server --ci",
     "predev:ci": "run-p resources:*",
-    "lint:typecheck": "npx tsc",
+    "lint:typecheck": "npx -y tsc",
     "lint:eslint": "eslint --quiet \"**/*.{js,jsx,ts,tsx}\"",
     "lint:styles": "stylelint src/**/*.scss",
     "lint:swagger2openapi": "node node_modules/.bin/oas-validate tmp/swagger.json",

+ 2 - 2
packages/slackbot-proxy/docker/Dockerfile

@@ -28,7 +28,7 @@ COPY --from=packages-json-picker ${optDir} .
 
 # setup
 RUN yarn config set network-timeout 300000
-RUN npx lerna bootstrap -- --frozen-lockfile
+RUN npx -y lerna bootstrap -- --frozen-lockfile
 
 # make artifacts
 RUN tar -cf node_modules.tar \
@@ -49,7 +49,7 @@ COPY ["package.json", "yarn.lock", "lerna.json", "./"]
 COPY ./packages/slack/package.json ./packages/slack/package.json
 COPY ./packages/slackbot-proxy/package.json ./packages/slackbot-proxy/package.json
 
-RUN npx lerna bootstrap -- --production
+RUN npx -y lerna bootstrap -- --production
 # make artifacts
 RUN tar -cf dependencies.tar \
   node_modules \