Skip to content

Commit 1f6caa6

Browse files
authored
feat(release): Add semantic release to the mix
1 parent 21f527c commit 1f6caa6

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ jobs:
3939
- attach_workspace:
4040
at: ~/repo
4141
- checkout
42-
- run:
43-
name: Running deploy
44-
command: echo "deploy"
42+
- run: npm run semantic-release
4543

4644
workflows:
4745
version: 2

.releaserc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"branch": "master",
3+
"prepare": [
4+
"@semantic-release/changelog",
5+
"@semantic-release/npm",
6+
{
7+
"path": "@semantic-release/git",
8+
"assets": [
9+
"package.json",
10+
"CHANGELOG.md"
11+
],
12+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13+
}
14+
],
15+
"plugins": [
16+
"@semantic-release/commit-analyzer",
17+
"@semantic-release/release-notes-generator",
18+
"@semantic-release/npm",
19+
"@semantic-release/github"
20+
]
21+
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint-fix": "npm run lint -- --fix",
1010
"lint-diff": "LIST=`git diff-index --name-only HEAD | grep '.*\\.js$';`; if [ \"$LIST\" ]; then eslint $LIST; fi",
1111
"precommit-msg": "echo 'Running pre-commit checks... (skip using --no-verify)' && exit 0",
12+
"semantic-release": "semantic-release",
1213
"test": "npm run lint"
1314
},
1415
"repository": {
@@ -21,9 +22,12 @@
2122
},
2223
"homepage": "https://github.com/5app/js-template#readme",
2324
"devDependencies": {
25+
"@semantic-release/changelog": "^3.0.4",
26+
"@semantic-release/git": "^7.0.12",
2427
"eslint": "^6.0.0",
25-
"eslint-config-5app": "^0.6.3",
26-
"husky": "^2.4.0"
28+
"eslint-config-5app": "^0.6.5",
29+
"husky": "^2.7.0",
30+
"semantic-release": "^15.13.16"
2731
},
2832
"husky": {
2933
"hooks": {

0 commit comments

Comments
 (0)