Skip to content
Snippets Groups Projects
Commit 15ee313a authored by Lars Trieloff's avatar Lars Trieloff
Browse files

build(package): Use semantic-release

fixes #101
parent 68e3a7da
No related branches found
No related tags found
No related merge requests found
......@@ -72,10 +72,9 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: BUILD_TAG=$(./node_modules/.bin/npm-snapshot $CIRCLE_BUILD_NUM) echo 'export BUILD_TAG=$BUILD_TAG' >> $BASH_ENV
- run:
name: Publish Snapshot
command: npm publish --access public
name: Publish Release
command: npm run semantic-release
workflows:
version: 2
......
module.exports = {
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/github", {}],
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md",
}],
"@semantic-release/git",
"@semantic-release/npm",
]
};
\ No newline at end of file
......@@ -7,6 +7,8 @@
"jsonschema2md": "./cli.js"
},
"scripts": {
"semantic-release": "semantic-release",
"commit": "git-cz",
"lint": "eslint .",
"lint-fix": "eslint . --fix",
"start": "node cli.js",
......@@ -28,11 +30,19 @@
"winston": "^3.1.0"
},
"devDependencies": {
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
"commitizen": "^3.0.7",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.6.1",
"ghooks": "^2.0.4",
"istanbul": "^0.4.5",
"jasmine": "~3.3.0",
"jasmine-diff": "^0.1.3",
"npm-snapshot": "^1.0.3"
"lint-staged": "^8.1.5",
"npm-snapshot": "^1.0.3",
"semantic-release": "^15.13.3"
},
"engines": {
"node": ">= 6.0.0"
......@@ -45,5 +55,16 @@
"url": "https://github.com/adobe/jsonschema2md/issues"
},
"license": "Apache-2.0",
"author": ""
"author": "",
"lint-staged": {
"*.js": "eslint"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npx lint-staged"
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment