File tree Expand file tree Collapse file tree 5 files changed +337
-254
lines changed
Expand file tree Collapse file tree 5 files changed +337
-254
lines changed Original file line number Diff line number Diff line change 11version : 2
22jobs :
3- node8 :
3+ node12 :
44 working_directory : ~/ci
55 docker :
6- - image : circleci/node:8
6+ - image : circleci/node:12
77 steps :
88 - checkout
99 - run :
1010 name : update-npm
1111 command : ' sudo npm install -g npm@latest'
12- # - restore_cache:
13- # key: dependency-cache-{{ checksum "package.json" }}
12+ # - restore_cache:
13+ # key: dependency-cache-{{ checksum "package.json" }}
1414 - run :
1515 name : install-npm-wee
1616 command : npm install
3939 - run :
4040 name : update-npm
4141 command : ' sudo npm install -g npm@latest'
42- # - restore_cache:
43- # key: dependency-cache-{{ checksum "package.json" }}
42+ # - restore_cache:
43+ # key: dependency-cache-{{ checksum "package.json" }}
4444 - run :
4545 name : install-npm-wee
4646 command : npm install
@@ -78,18 +78,20 @@ jobs:
7878
7979workflows :
8080 version : 2
81- build_and_deploy :
81+ branch_logic :
8282 jobs :
83- - node8 :
83+ - node12 :
8484 filters :
8585 branches :
86- ignore : master
86+ ignore : master
8787
8888 - node10 :
8989 filters :
9090 branches :
9191 ignore : master
9292
93+ master_logic :
94+ jobs :
9395 - deploy :
9496 filters :
9597 branches :
Original file line number Diff line number Diff line change @@ -17,21 +17,21 @@ VERSION=$( node -pe "require('./package.json').version")
1717make build package || exit 100
1818
1919aws serverlessrepo create-application-version \
20- --application-id arn:aws:serverlessrepo:us-east-1:${ACCOUNT_ID} :applications/${APPLICATION} \
21- --semantic-version ${VERSION} \
22- --source-code-url https://github.com/uvasoftware/scanii-lambda/releases/tag/v${VERSION} \
20+ --application-id arn:aws:serverlessrepo:us-east-1:" ${ACCOUNT_ID} " :applications/${APPLICATION} \
21+ --semantic-version " ${VERSION} " \
22+ --source-code-url https://github.com/uvasoftware/scanii-lambda/releases/tag/v" ${VERSION} " \
2323 --template-body file://scanii-lambda.yaml > /dev/null || exit 99
2424
2525echo " SAM application ${APPLICATION} version ${VERSION} published!"
2626
2727# tag repo
2828git config --global user.email
" [email protected] " 2929git config --global user.name " CircleCI"
30- git tag -a v${VERSION} -m " Release by CircleCI v${VERSION} "
31- git push origin v${VERSION}
30+ git tag -a v" ${VERSION} " -m " Release by CircleCI v${VERSION} "
31+ git push origin v" ${VERSION} "
3232
3333# bumping version
34- npm --no-git-tag-version version patch
34+ npm --no-git-tag-version version minor
3535VERSION=$( node -pe " require('./package.json').version" )
3636echo " next version is: $VERSION "
3737
You can’t perform that action at this time.
0 commit comments