Skip to content

Commit 8bab9a9

Browse files
Merge pull request #91 from topcoder-platform/PROD-3277_version
PROD-3277 Update Types & Version on master push
2 parents a230e37 + 313544c commit 8bab9a9

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.circleci/config.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,45 @@ workspace_persist: &workspace_persist
5454
workspace_attach: &workspace_attach
5555
at: ./workspace
5656

57+
running_version_patch: &running_version_patch
58+
name: Patching Version
59+
command: |
60+
npm install
61+
git config user.name brooketopcoder
62+
git config user.email [email protected]
63+
npm version patch -m "Increment Version [ci skip]"
64+
git push --set-upstream origin master
5765
66+
update_types: &update_types
67+
name: Updating Types
68+
command: |
69+
npm ci
70+
npm run types
71+
diffstatus=$(git status --porcelain)
72+
git config user.name brooketopcoder
73+
git config user.email [email protected]
74+
git add types
75+
git diff-index --cached --quiet HEAD || git commit -m "Add Types [ci skip]"
76+
git push --set-upstream origin master
77+
78+
finger_print_add: &finger_print_add
79+
fingerprints:
80+
- "a5:ad:51:96:10:a9:09:fb:7b:b4:fc:b7:08:df:ab:fa"
81+
5882
# DEFINE STEPS FOR JOBS
5983

84+
build_steps_prod: &build_steps_prod
85+
# Initialization.
86+
- add_ssh_keys: *finger_print_add
87+
- checkout
88+
- setup_remote_docker
89+
- run: *install_build_dependency
90+
- run: *install_deploysuite
91+
- run: *update_types
92+
- run: *running_version_patch
93+
- run: *running_npm_build
94+
- persist_to_workspace: *workspace_persist
95+
6096
build_steps: &build_steps
6197
# Initialization.
6298
- checkout
@@ -96,7 +132,7 @@ jobs:
96132
DEPLOY_ENV: "PROD"
97133
LOGICAL_ENV: "prod"
98134
APPNAME: "universal-navigation"
99-
steps: *build_steps
135+
steps: *build_steps_prod
100136

101137
# Just tests commited code.
102138
deployDev:

0 commit comments

Comments
 (0)