Skip to content

Commit a341afe

Browse files
Merge pull request #92 from topcoder-platform/dev
TCA-838 2.5 TCA Uni-Nav Release Increment Version & Types -> master
2 parents 5ac4de3 + 8bab9a9 commit a341afe

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-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:

iac/uni-nav.deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ Resources:
8282
# Customer & Member Marketing Prod & Dev
8383
- !Sub https://${Domain}
8484
- !Sub https://www.${Domain}
85+
86+
# Customer Marketing Local
87+
- !If
88+
- IsProd
89+
- !Ref AWS::NoValue
90+
- http://localhost
8591

8692
# Forum Prod & Dev
8793
- !Sub https://discussions.${Domain}

0 commit comments

Comments
 (0)