Skip to content

Commit 01a251d

Browse files
committed
Modify a installation method.
1 parent 0bd7b07 commit 01a251d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.circleci/config.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ executors:
2828
- image: circleci/node:12.13.0-browsers
2929

3030
commands:
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

6768
jobs:
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

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ aws s3 cp app/static/header_logo_original.png s3://${DIST_S3_BUCKET_NAME}/d/nuxt
1919
yarn install --production --frozen-lockfile
2020

2121
# node-module の不要ファイルを削除
22-
node-prune ./node_modules
22+
/home/circleci/go/bin/node-prune ./node_modules
2323

2424
# デプロイ
2525
yarn sls:deploy

0 commit comments

Comments
 (0)