Skip to content

Commit f0a2ad7

Browse files
committed
update CI
1 parent 7bc8794 commit f0a2ad7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.circleci/config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
deploy_stage:
2020
docker:
2121
- image: circleci/node:8.15-browsers
22+
user: root
2223
steps:
2324
- checkout
2425
- run: sudo apt update && sudo apt install awscli
@@ -27,14 +28,14 @@ jobs:
2728
- run: sudo npm i -g npm-cli-login
2829
- run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login
2930
- run: npm publish --dry-run
30-
- run: gzip -9 /home/circleci/project/dist/iife/onboard.js
31-
- run: mv /home/circleci/project/dist/iife/onboard.js.gz /home/circleci/project/dist/iife/onboard.js
31+
- run: gzip -9 ./dist/iife/onboard.js
32+
- run: mv ./dist/iife/onboard.js.gz ./dist/iife/onboard.js
3233
- run: ls -al
3334
- run: echo export VERSION=`awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json | sed 's/\./-/g'` >> $BASH_ENV
34-
- run: mkdir /home/circleci/project/deploy-temp
35-
- run: mkdir /home/circleci/project/deploy-temp/${VERSION}
36-
- run: mv /home/circleci/project/dist/iife/*.js /home/circleci/project/deploy-temp/${VERSION}/
37-
- run: aws s3 sync /home/circleci/project/deploy-temp/${VERSION}/ s3://staging.onboard.blocknative.com/${VERSION}/ --content-type "text/javascript" --content-encoding "gzip" --cache-control "max-age=31536000" --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
35+
- run: mkdir /root/project/deploy-temp
36+
- run: mkdir /root/project/deploy-temp/${VERSION}
37+
- run: mv /root/project/dist/iife/*.js /root/project/deploy-temp/${VERSION}/
38+
- run: aws s3 sync /root/project/deploy-temp/${VERSION}/ s3://staging.onboard.blocknative.com/${VERSION}/ --content-type "text/javascript" --content-encoding "gzip" --cache-control "max-age=31536000" --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
3839
deploy_prod:
3940
docker:
4041
- image: circleci/node:8.15-browsers

0 commit comments

Comments
 (0)