Skip to content

Commit e253d8c

Browse files
authored
Merge pull request #2 from BeerMoneyDev/SemanticRelease
feature(SemanticRelease): Add Semantic Release to nest-monk.
2 parents 12b6a66 + 57795c1 commit e253d8c

File tree

4 files changed

+12123
-5887
lines changed

4 files changed

+12123
-5887
lines changed

.circleci/config.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:12.17.0
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- v1-dependencies-{{ checksum "package.json" }}
12+
# fallback to using the latest cache if no exact match is found
13+
- v1-dependencies-
14+
- run:
15+
name: Install Dependencies
16+
command: |
17+
npm install
18+
- save_cache:
19+
paths:
20+
- ./node_modules
21+
key: v1-dependencies-{{ checksum "package.json" }}
22+
- run:
23+
name: Build
24+
command: |
25+
npm run build
26+
- run:
27+
name: Test
28+
command: |
29+
npm run test:cov
30+
- run:
31+
name: Lint
32+
command: |
33+
npm run lint
34+
35+
release:
36+
docker:
37+
- image: circleci/node:12.17.0
38+
working_directory: ~/repo
39+
steps:
40+
- checkout
41+
- restore_cache:
42+
keys:
43+
- v1-dependencies-{{ checksum "package.json" }}
44+
# fallback to using the latest cache if no exact match is found
45+
- v1-dependencies-
46+
- run:
47+
name: Install Dependencies
48+
command: |
49+
npm install
50+
- run:
51+
name: Build
52+
command: |
53+
npm run build
54+
- run:
55+
name: Release
56+
command: |
57+
npx semantic-release
58+
59+
workflows:
60+
version: 2
61+
test_and_release:
62+
jobs:
63+
- build
64+
- release:
65+
requires:
66+
- build
67+
filters:
68+
branches:
69+
only: master

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,8 @@ class UserController {
203203

204204
## License
205205

206-
nest-monk is MIT licensed.
206+
nest-monk is MIT licensed.
207+
208+
## Contributing
209+
210+
Nest-monk is released through [semantic-release](https://github.com/semantic-release/semantic-release). Effectively this means that versioning is based off commit messages. Please review [angular-changelog-convention](https://github.com/conventional-changelog-archived-repos/conventional-changelog-angular/blob/master/convention.md) and commit under that format. Otherwise semantic-release won't detect commits which should version the library.

0 commit comments

Comments
 (0)