Skip to content

Commit 47d118d

Browse files
committed
feat(release): update release process to use standard-version
1 parent c524b82 commit 47d118d

File tree

3 files changed

+219
-50
lines changed

3 files changed

+219
-50
lines changed

CHANGELOG.md

Lines changed: 210 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,238 @@
1-
# Changelog
1+
# Change Log
22

3-
Do this to generate your change history
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
git log --pretty=format:'* [%h](https://github.com/pact-foundation/pact-js/commit/%h) - %s (%an, %ad)' vX.Y.Z..HEAD | egrep -v "wip(:|\()" | grep -v "docs(" | grep -v "chore(" | grep -v Merge | grep -v "test("
5+
<a name="4.0.0"></a>
6+
# [4.0.0](https://github.com/pact-foundation/pact-js/compare/v3.0.1...v4.0.0) (2017-10-18)
67

7-
### v3.0.0
88

9-
* [e9f3a4a](https://github.com/pact-foundation/pact-js/commit/e9f3a4a) - feat(karma): relax consumer/provider requirement in MockService (Matt Fellows, Tue Sep 19 08:52:56 2017 +1000)
10-
* [f141c5e](https://github.com/pact-foundation/pact-js/commit/f141c5e) - fix(tests): update e2e tests with timeout for CI builds (Matt Fellows, Sun Aug 6 17:32:26 2017 +1000)
11-
* [65e8314](https://github.com/pact-foundation/pact-js/commit/65e8314) - feat(example): adding example for the AVA test framework (Liran Tal, Sat Aug 5 02:12:54 2017 +0300)
9+
### Bug Fixes
1210

13-
### v2.7.0
11+
* **src:** fix typo in error message ([e91588c](https://github.com/pact-foundation/pact-js/commit/e91588c))
12+
* **verification:** pass validation error message on ([3041282](https://github.com/pact-foundation/pact-js/commit/3041282))
1413

15-
* [50e1041](https://github.com/pact-foundation/pact-js/commit/50e1041) - feat(upgrade): upgrade to latest pact node v4.12.0 (Matt Fellows, Sun Aug 6 14:22:36 2017 +1000)
16-
* [bac51ad](https://github.com/pact-foundation/pact-js/commit/bac51ad) - fix(issue_template): Corrected typos (Beth Skurrie, Sat Aug 5 11:52:42 2017 +1000)
17-
* [84b78c3](https://github.com/pact-foundation/pact-js/commit/84b78c3) - fix(gitignore): ignore IDE generated project files (Liran Tal, Fri Jul 28 06:14:44 2017 +0300)
18-
* [8af914b](https://github.com/pact-foundation/pact-js/commit/8af914b) - Fix typo (MiguelCG, Wed Jul 26 22:12:39 2017 +0100)
19-
* [af18c28](https://github.com/pact-foundation/pact-js/commit/af18c28) - Fix typo in readme (MiguelCG, Thu Jul 20 20:02:24 2017 +0100)
20-
* [6068b62](https://github.com/pact-foundation/pact-js/commit/6068b62) - Added example of like around value and like around object (Beth Skurrie, Tue Jun 27 14:54:24 2017 +1000)
21-
* [587f71f](https://github.com/pact-foundation/pact-js/commit/587f71f) - Updated documentation around like and eachLike (Beth Skurrie, Tue Jun 27 14:51:27 2017 +1000)
22-
* [4ba6793](https://github.com/pact-foundation/pact-js/commit/4ba6793) - Create CONTRIBUTING.md (Beth Skurrie, Fri Jun 16 09:38:20 2017 +1000)
23-
* [5676377](https://github.com/pact-foundation/pact-js/commit/5676377) - Create CONTRIBUTING.md (Beth Skurrie, Fri Jun 16 09:37:37 2017 +1000)
2414

25-
### v2.6.0
15+
### Features
2616

27-
* [50e1041](https://github.com/pact-foundation/pact-js/commit/50e1041) - feat(upgrade): upgrade to latest pact node v4.12.0 (Matt Fellows, Sun Aug 6 14:22:36 2017 +1000)
17+
* **pact-node:** upgrade to pact-node 5.x.x ([6d2ad81](https://github.com/pact-foundation/pact-js/commit/6d2ad81))
18+
* **pact-server:** Allow to run pact mock server on a host other than localhost/127.0.0.1 ([e24be20](https://github.com/pact-foundation/pact-js/commit/e24be20))
2819

29-
### v2.6.0
3020

31-
* [844bdfd](https://github.com/pact-foundation/pact-js/commit/844bdfd) - chore(build): allow all minor version upgrades to Pact Node (Matt Fellows, Thu Jun 1 14:10:35 2017 +1000)
3221

33-
### v2.5.0
22+
<a name="3.0.1"></a>
23+
## [3.0.1](https://github.com/pact-foundation/pact-js/compare/v2.7.0...v3.0.1) (2017-09-19)
3424

35-
* [f11f0eb](https://github.com/pact-foundation/pact-js/commit/f11f0eb) - Wait for removeInteractions() on verify() (Voon Siong Wong, Mon May 15 12:04:58 2017 +1000)
3625

37-
### 2.4.1
26+
### Bug Fixes
3827

39-
* [6b32990](https://github.com/pact-foundation/pact-js/commit/6b32990) - feat(writemode): update pactFileWriteMode flag and docs (Matt Fellows, Fri May 12 10:40:27 2017 +1000)
40-
* [cc44554](https://github.com/pact-foundation/pact-js/commit/cc44554) - fix(providerstate): make providerState serialisation spec compliant #12 (Matt Fellows, Thu May 11 20:51:51 2017 +1000)
41-
* [da92274](https://github.com/pact-foundation/pact-js/commit/da92274) - feat(mock service): add pactfile_write_mode option handling (Narazaka, Tue May 9 18:56:56 2017 +0900)
42-
* [592b9db](https://github.com/pact-foundation/pact-js/commit/592b9db) - feat(verifications): update example to publish verification results (Matt Fellows, Tue May 9 17:06:30 2017 +1000)
28+
* **lint:** fix lint in mock service ([e4c61b1](https://github.com/pact-foundation/pact-js/commit/e4c61b1))
29+
* **tests:** update e2e tests with timeout for CI builds ([f141c5e](https://github.com/pact-foundation/pact-js/commit/f141c5e))
30+
* **typo:** cosmetic cleanup for typo of wrong project name ([18d49f6](https://github.com/pact-foundation/pact-js/commit/18d49f6))
4331

44-
### 2.3.3
4532

46-
* [8eeb561](https://github.com/pact-foundation/pact-js/commit/8eeb561) - feat(typescript): add TypeScript annotations (Narazaka, Wed Apr 19 20:37:01 2017 +0900)
33+
### Features
4734

48-
### 2.3.2
35+
* **karma:** relax consumer/provider requirement in MockService ([e9f3a4a](https://github.com/pact-foundation/pact-js/commit/e9f3a4a))
4936

50-
* [c729d8e](https://github.com/pact-foundation/pact-js/commit/c729d8e) - feat(port-check): check if port is available during setup() #37 (Matt Fellows, Sun Apr 16 12:10:19 2017 +1000)
5137

52-
### 2.3.1
5338

54-
* [a617b03](https://github.com/pact-foundation/pact-js/commit/a617b03) - Pass cors option to pact-node (Jeff Chen, Mon Mar 27 18:58:41 2017 -0700)
39+
<a name="2.7.0"></a>
40+
# [2.7.0](https://github.com/pact-foundation/pact-js/compare/v2.6.0...v2.7.0) (2017-08-06)
5541

56-
### 2.2.0
5742

58-
* [c54d224](https://github.com/pact-foundation/pact-js/commit/c54d224) - feat(ssl): add ability to specify custom ssl key + cert #29 (Matt Fellows, Tue Feb 28 08:10:26 2017 +1100)
43+
### Bug Fixes
5944

60-
### 2.1.0
45+
* **gitignore:** ignore IDE generated project files ([84b78c3](https://github.com/pact-foundation/pact-js/commit/84b78c3))
46+
* **issue_template:** Corrected typos ([bac51ad](https://github.com/pact-foundation/pact-js/commit/bac51ad))
6147

62-
* [4d0901e](https://github.com/pact-foundation/pact-js/commit/4d0901e) - feat(verify): update to latest pact-node including ability to set verification timeout #28 (Matt Fellows, Mon Feb 27 18:33:00 2017 +1100)
6348

64-
### 2.0.0
49+
### Features
6550

66-
* [ef27b7c](https://github.com/pact-foundation/pact-js/commit/ef27b7c) - feat(karma): update code formatting (Matt Fellows, Sun Feb 19 21:27:42 2017 +1100)
67-
* [7182c7b](https://github.com/pact-foundation/pact-js/commit/7182c7b) - feat(karma): update tests for karma suite and adapted Pact API for Karma (Matt Fellows, Sun Feb 19 21:10:33 2017 +1100)
68-
* [a06a14d](https://github.com/pact-foundation/pact-js/commit/a06a14d) - fix(api): remove redundant responseParser and tests (Matt Fellows, Sun Feb 19 12:45:48 2017 +1100)
69-
* [67482d1](https://github.com/pact-foundation/pact-js/commit/67482d1) - feat(api): redesign API to make it simpler to interact with (Matt Fellows, Tue Jan 24 08:57:17 2017 +1100)
70-
* [898203a](https://github.com/pact-foundation/pact-js/commit/898203a) - feat(examples): update e2e provider test to use mocha interface (Matt Fellows, Thu Jan 19 14:22:12 2017 +1100)
51+
* **example:** adding example for the AVA test framework ([65e8314](https://github.com/pact-foundation/pact-js/commit/65e8314))
52+
* **upgrade:** upgrade to latest pact node v4.12.0 ([50e1041](https://github.com/pact-foundation/pact-js/commit/50e1041))
7153

72-
### v1.0.0 and earlier
7354

74-
Initial implementation!
55+
56+
<a name="2.6.0"></a>
57+
# [2.6.0](https://github.com/pact-foundation/pact-js/compare/v2.5.0...v2.6.0) (2017-06-13)
58+
59+
60+
61+
<a name="2.5.0"></a>
62+
# [2.5.0](https://github.com/pact-foundation/pact-js/compare/v2.4.1...v2.5.0) (2017-05-15)
63+
64+
65+
66+
<a name="2.4.1"></a>
67+
## [2.4.1](https://github.com/pact-foundation/pact-js/compare/v2.4.0...v2.4.1) (2017-05-12)
68+
69+
70+
### Features
71+
72+
* **writemode:** update pactFileWriteMode flag and docs ([6b32990](https://github.com/pact-foundation/pact-js/commit/6b32990))
73+
74+
75+
76+
<a name="2.4.0"></a>
77+
# [2.4.0](https://github.com/pact-foundation/pact-js/compare/v2.3.4...v2.4.0) (2017-05-11)
78+
79+
80+
### Bug Fixes
81+
82+
* **providerstate:** make providerState serialisation spec compliant [#12](https://github.com/pact-foundation/pact-js/issues/12) ([cc44554](https://github.com/pact-foundation/pact-js/commit/cc44554))
83+
84+
85+
### Features
86+
87+
* **mock service:** add pactfile_write_mode option handling ([da92274](https://github.com/pact-foundation/pact-js/commit/da92274))
88+
* **verifications:** update example to publish verification results ([592b9db](https://github.com/pact-foundation/pact-js/commit/592b9db))
89+
90+
91+
92+
<a name="2.3.4"></a>
93+
## [2.3.4](https://github.com/pact-foundation/pact-js/compare/v2.3.3...v2.3.4) (2017-04-26)
94+
95+
96+
### Features
97+
98+
* **pact-web:** only deploy pact-web on tagged master ([a66cbea](https://github.com/pact-foundation/pact-js/commit/a66cbea))
99+
100+
101+
102+
<a name="2.3.3"></a>
103+
## [2.3.3](https://github.com/pact-foundation/pact-js/compare/v2.3.1...v2.3.3) (2017-04-21)
104+
105+
106+
### Features
107+
108+
* **port-check:** check if port is available during setup() [#37](https://github.com/pact-foundation/pact-js/issues/37) ([c729d8e](https://github.com/pact-foundation/pact-js/commit/c729d8e))
109+
* **typescript:** add TypeScript annotations ([8eeb561](https://github.com/pact-foundation/pact-js/commit/8eeb561))
110+
111+
112+
113+
<a name="2.3.1"></a>
114+
## [2.3.1](https://github.com/pact-foundation/pact-js/compare/v2.2.1...v2.3.1) (2017-04-03)
115+
116+
117+
118+
<a name="2.2.1"></a>
119+
## [2.2.1](https://github.com/pact-foundation/pact-js/compare/v2.2.0...v2.2.1) (2017-03-12)
120+
121+
122+
### Bug Fixes
123+
124+
* **test:** fix logic issue in karma tests that was passing for the wrong reasons ([080898f](https://github.com/pact-foundation/pact-js/commit/080898f))
125+
* **test:** update karma jasmine test to properly fail tests if verification fails. ([802d5dc](https://github.com/pact-foundation/pact-js/commit/802d5dc))
126+
* **test:** update karma mocha test to fail if verification fails ([98a6380](https://github.com/pact-foundation/pact-js/commit/98a6380))
127+
128+
129+
130+
<a name="2.2.0"></a>
131+
# [2.2.0](https://github.com/pact-foundation/pact-js/compare/v2.1.0...v2.2.0) (2017-02-27)
132+
133+
134+
### Features
135+
136+
* **ssl:** add ability to specify custom ssl key + cert [#29](https://github.com/pact-foundation/pact-js/issues/29) ([c54d224](https://github.com/pact-foundation/pact-js/commit/c54d224))
137+
138+
139+
140+
<a name="2.1.0"></a>
141+
# [2.1.0](https://github.com/pact-foundation/pact-js/compare/v2.0.1...v2.1.0) (2017-02-27)
142+
143+
144+
### Features
145+
146+
* **test:** update end-to-end test example ([cb38b17](https://github.com/pact-foundation/pact-js/commit/cb38b17))
147+
* **verify:** update to latest pact-node including ability to set verification timeout [#28](https://github.com/pact-foundation/pact-js/issues/28) ([4d0901e](https://github.com/pact-foundation/pact-js/commit/4d0901e))
148+
149+
150+
151+
<a name="2.0.1"></a>
152+
## [2.0.1](https://github.com/pact-foundation/pact-js/compare/v2.0.0...v2.0.1) (2017-02-26)
153+
154+
155+
### Bug Fixes
156+
157+
* pact-node and cli-color should be dependencies ([#26](https://github.com/pact-foundation/pact-js/issues/26) [#25](https://github.com/pact-foundation/pact-js/issues/25)) ([83c8af3](https://github.com/pact-foundation/pact-js/commit/83c8af3))
158+
159+
160+
161+
<a name="2.0.0"></a>
162+
# [2.0.0](https://github.com/pact-foundation/pact-js/compare/v1.0.0...v2.0.0) (2017-02-22)
163+
164+
165+
### Bug Fixes
166+
167+
* **api:** remove redundant responseParser and tests ([a06a14d](https://github.com/pact-foundation/pact-js/commit/a06a14d))
168+
* **test:** properly pass through ssl flag ([bc3120d](https://github.com/pact-foundation/pact-js/commit/bc3120d))
169+
* **test:** set timeout to 10s for Travis builds ([e76d0e8](https://github.com/pact-foundation/pact-js/commit/e76d0e8))
170+
* **test:** update all mainline tests to match new API ([936a75d](https://github.com/pact-foundation/pact-js/commit/936a75d))
171+
* **test:** update e2e test to properly wait for pact finalisation ([b98c1f9](https://github.com/pact-foundation/pact-js/commit/b98c1f9))
172+
* **test:** update formatting in integration test ([6bd19c9](https://github.com/pact-foundation/pact-js/commit/6bd19c9))
173+
* **test:** update jest tests with new API, fixes [#21](https://github.com/pact-foundation/pact-js/issues/21) ([4eb2e1c](https://github.com/pact-foundation/pact-js/commit/4eb2e1c))
174+
* **test:** update mocha tests with new API, fixes [#22](https://github.com/pact-foundation/pact-js/issues/22) ([2062d6d](https://github.com/pact-foundation/pact-js/commit/2062d6d))
175+
* **tests:** remove trailing semi-colons for consistency ([7a9565d](https://github.com/pact-foundation/pact-js/commit/7a9565d))
176+
177+
178+
### Features
179+
180+
* **api:** redesign API to make it simpler to interact with ([67482d1](https://github.com/pact-foundation/pact-js/commit/67482d1))
181+
* **examples:** update e2e provider test to use mocha interface ([898203a](https://github.com/pact-foundation/pact-js/commit/898203a))
182+
* **karma:** update code formatting ([ef27b7c](https://github.com/pact-foundation/pact-js/commit/ef27b7c))
183+
* **karma:** update tests for karma suite and adapted Pact API for Karma ([7182c7b](https://github.com/pact-foundation/pact-js/commit/7182c7b))
184+
185+
186+
187+
<a name="1.0.0"></a>
188+
# [1.0.0](https://github.com/pact-foundation/pact-js/compare/v1.0.0-rc.5...v1.0.0) (2017-01-21)
189+
190+
191+
### Features
192+
193+
* **example:** add better readme, cleanup linting for E2E example ([4a8e8cb](https://github.com/pact-foundation/pact-js/commit/4a8e8cb))
194+
* **examples:** running consumer tests for E2E example ([274f18f](https://github.com/pact-foundation/pact-js/commit/274f18f))
195+
* **examples:** update docu for e2e example ([491f641](https://github.com/pact-foundation/pact-js/commit/491f641))
196+
* **examples:** WIP e2e example ([14a464c](https://github.com/pact-foundation/pact-js/commit/14a464c))
197+
* **examples:** working e2e example ([24b9888](https://github.com/pact-foundation/pact-js/commit/24b9888))
198+
199+
200+
201+
<a name="1.0.0-rc.5"></a>
202+
# [1.0.0-rc.5](https://github.com/pact-foundation/pact-js/compare/v1.0.0-rc.4...v1.0.0-rc.5) (2016-08-28)
203+
204+
205+
### Bug Fixes
206+
207+
* **readme:** fix example in readme ([f0eeb0f](https://github.com/pact-foundation/pact-js/commit/f0eeb0f))
208+
* **style:** remove empty space breaking linter ([62a72d8](https://github.com/pact-foundation/pact-js/commit/62a72d8))
209+
210+
211+
### Features
212+
213+
* **interceptor:** remove Interceptor from DSL ([0b9e4f4](https://github.com/pact-foundation/pact-js/commit/0b9e4f4))
214+
215+
216+
217+
<a name="1.0.0-rc.4"></a>
218+
# [1.0.0-rc.4](https://github.com/pact-foundation/pact-js/compare/v1.0.0-rc.3...v1.0.0-rc.4) (2016-08-02)
219+
220+
221+
### Features
222+
223+
* **app:** update distribution files ([8f9f7e2](https://github.com/pact-foundation/pact-js/commit/8f9f7e2))
224+
225+
226+
227+
<a name="1.0.0-rc.3"></a>
228+
# [1.0.0-rc.3](https://github.com/pact-foundation/pact-js/compare/v1.0.0-rc.2...v1.0.0-rc.3) (2016-08-01)
229+
230+
231+
232+
<a name="1.0.0-rc.2"></a>
233+
# [1.0.0-rc.2](https://github.com/pact-foundation/pact-js/compare/v1.0.0-rc...v1.0.0-rc.2) (2016-07-11)
234+
235+
236+
### Bug Fixes
237+
238+
* **lib:** better handling HTTP responses ([7b07821](https://github.com/pact-foundation/pact-js/commit/7b07821))

RELEASING.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
* Update the version number in each `package.json` file to latest version
66
* Commit
77

8-
$ git add package.json
9-
$ git commit -am "chore(release): release vX.Y.Z"
10-
$ git tag -a "vX.Y.Z" -m "release vX.Y.Z" && git push --follow-tags
8+
$ npm run release
9+
$ # review workspace and commits - if all looks good...
10+
$ git push --follow-tags
11+
12+
Travis CI will do the rest.
1113

1214
## How to re-tag if a publish fails
1315

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
"dist": "webpack --config ./config/webpack.web.config.js",
1212
"lint": "standard",
1313
"jscpd": "jscpd -p src -r json -o jscpd.json",
14-
"predist": "npm run clean && npm run lint && npm run jscpd",
1514
"postdist": "npm t",
15+
"predist": "npm run clean && npm run lint && npm run jscpd",
16+
"prerelease": "npm i && rm package-lock.json",
17+
"release": "standard-version",
1618
"test": "istanbul cover ./node_modules/.bin/_mocha --timeout 10000 -- ./test",
1719
"test:karma": "npm run test:karma:jasmine && npm run test:karma:mocha",
1820
"test:karma:jasmine": "karma start ./karma/jasmine/karma.conf.js",
@@ -108,6 +110,7 @@
108110
"sinon": "1.x",
109111
"sinon-chai": "2.x",
110112
"standard": "8.x",
113+
"standard-version": "^4.2.0",
111114
"superagent": "2.x",
112115
"webpack": "1.x"
113116
}

0 commit comments

Comments
 (0)