File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,17 @@ executors:
2828 - image : circleci/node:12.13.0-browsers
2929
3030commands :
31- prepare-go :
32- description : ' go 言語をインストール'
33- steps :
34- - go/install
35-
3631 prepare-aws-cli :
3732 description : ' AWS CLIを準備'
3833 steps :
3934 - aws-cli/install
4035
36+ prepare-node-prune :
37+ description : ' node-prune をインストール'
38+ steps :
39+ - go/install
40+ - run : go get github.com/tj/node-prune@v1.2.0
41+
4142 prepare-resources :
4243 description : ' リソースを準備'
4344 steps :
@@ -62,7 +63,7 @@ commands:
6263 steps :
6364 - prepare-resources
6465 - prepare-aws-cli
65- - prepare-go
66+ - prepare-node-prune
6667
6768jobs :
6869 lint-and-test :
@@ -121,7 +122,6 @@ jobs:
121122 command : |
122123 if [ $ALIS_APP_ID ]; then
123124 sudo npm install -g 'serverless@1.x'
124- sudo go get github.com/tj/node-prune@1.2.0
125125 yarn deploy
126126 fi
127127
@@ -138,7 +138,6 @@ jobs:
138138 command : |
139139 if [ $ALIS_APP_ID ] && [ $CIRCLE_PROJECT_USERNAME != 'AlisProject' ]; then
140140 sudo npm install -g 'serverless@1.x'
141- sudo go get github.com/tj/node-prune@1.2.0
142141 yarn deploy
143142 fi
144143
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ aws s3 cp app/static/header_logo_original.png s3://${DIST_S3_BUCKET_NAME}/d/nuxt
1919yarn install --production --frozen-lockfile
2020
2121# node-module の不要ファイルを削除
22- node-prune ./node_modules
22+ /home/circleci/go/bin/ node-prune ./node_modules
2323
2424# デプロイ
2525yarn sls:deploy
You can’t perform that action at this time.
0 commit comments