Skip to content

Commit 6c7cfef

Browse files
authored
chore: setup auto release (#142)
* chore: setup auto release * chore: remove CHANGELOG * chore: remove standard-version
1 parent 8c6226e commit 6c7cfef

File tree

5 files changed

+3483
-482
lines changed

5 files changed

+3483
-482
lines changed

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@kocal/semantic-release-preset"
3+
}

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ node_js:
55
- "8"
66
- "node"
77

8+
branches:
9+
except:
10+
- /^v\d+\.\d+\.\d+$/
11+
812
cache:
913
yarn: true
1014
directories:
@@ -33,3 +37,7 @@ script:
3337
- yarn lint
3438
- yarn test -i && yarn codecov
3539
- yarn cypress run --config watchForFileChanges=false --record
40+
41+
after_success:
42+
- yarn travis-deploy-once "yarn semantic-release"
43+

CHANGELOG.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsdoc-vuejs",
3-
"version": "2.3.1",
3+
"version": "0.0.0-development",
44
"description": "A JSDoc plugin for documenting .vue files.",
55
"main": "index.js",
66
"files": [
@@ -10,11 +10,12 @@
1010
"scripts": {
1111
"test": "jest",
1212
"lint": "eslint --ext .js index.js config.js lib __tests__ cypress",
13-
"release": "standard-version"
13+
"travis-deploy-once": "travis-deploy-once",
14+
"semantic-release": "semantic-release"
1415
},
1516
"repository": {
1617
"type": "git",
17-
"url": "git+https://github.com/Kocal/jsdoc-vuejs.git"
18+
"url": "https://github.com/Kocal/jsdoc-vuejs.git"
1819
},
1920
"keywords": [
2021
"jsdoc",
@@ -34,6 +35,7 @@
3435
"vue-template-compiler": "^2.5.16"
3536
},
3637
"devDependencies": {
38+
"@kocal/semantic-release-preset": "^1.1.0",
3739
"cheerio": "^1.0.0-rc.2",
3840
"codecov": "^3.0.4",
3941
"cypress": "^3.0.3",
@@ -42,6 +44,7 @@
4244
"eslint-plugin-cypress": "^2.0.1",
4345
"eslint-plugin-import": "^2.13.0",
4446
"jest": "^23.4.2",
45-
"standard-version": "^4.4.0"
47+
"semantic-release": "^15.12.1",
48+
"travis-deploy-once": "^5.0.9"
4649
}
4750
}

0 commit comments

Comments
 (0)