File tree 2 files changed +28
-6
lines changed
2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,28 @@ jobs:
100
100
- ./package.json
101
101
# - jobstatus
102
102
103
- publish :
103
+ publish-dev :
104
104
executor : build-executor
105
105
steps :
106
106
- attach_workspace :
107
107
at : /tmp/workspace
108
108
- setup_environment :
109
109
version_path : /tmp/workspace
110
110
- run :
111
- name : Publish pacts to broker
112
- command : npm run pact:publish
111
+ name : Publish development pacts to broker
112
+ command : cd /tmp/workspace && npm run pact:publish-dev
113
+ # - jobstatus
114
+
115
+ publish-prod :
116
+ executor : build-executor
117
+ steps :
118
+ - attach_workspace :
119
+ at : /tmp/workspace
120
+ - setup_environment :
121
+ version_path : /tmp/workspace
122
+ - run :
123
+ name : Publish production pacts to broker
124
+ command : npm run pact:publish-prod
113
125
- run :
114
126
name : Publish package to NPM
115
127
command : cd /tmp/workspace && npm publish
@@ -134,7 +146,16 @@ workflows:
134
146
build-and-deploy :
135
147
jobs :
136
148
- build_test
137
- - publish :
149
+ - publish-dev :
150
+ context :
151
+ - org-global
152
+ - w3w-pact
153
+ requires :
154
+ - build_test
155
+ filters :
156
+ branches :
157
+ ignore : master
158
+ - publish-prod :
138
159
context :
139
160
- org-global
140
161
- w3w-pact
@@ -145,5 +166,5 @@ workflows:
145
166
only : master
146
167
- tag :
147
168
requires :
148
- - publish
169
+ - publish-prod
149
170
Original file line number Diff line number Diff line change 20
20
"pact_do_not_track" : true
21
21
},
22
22
"scripts" : {
23
- "pact:publish" : " pact-broker publish pacts --consumer-app-version=\" $npm_package_version-$(git rev-parse --short HEAD)\" --auto-detect-version-properties --broker-base-url=${PACT_BROKER_BASE_URL}" ,
23
+ "pact:publish-dev" : " pact-broker publish pacts --consumer-app-version=\" $npm_package_version-$(git rev-parse --short HEAD)\" --auto-detect-version-properties --broker-base-url=${PACT_BROKER_BASE_URL}" ,
24
+ "pact:publish-prod" : " pact-broker publish pacts --consumer-app-version=\" $npm_package_version\" --auto-detect-version-properties --broker-base-url=${PACT_BROKER_BASE_URL}" ,
24
25
"test" : " jest" ,
25
26
"test:watch" : " jest --watch" ,
26
27
"coverage" : " jest --coverage" ,
You can’t perform that action at this time.
0 commit comments