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: ...@@ -72,10 +72,9 @@ jobs:
- node_modules - node_modules
key: v1-dependencies-{{ checksum "package.json" }} 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: - run:
name: Publish Snapshot name: Publish Release
command: npm publish --access public command: npm run semantic-release
workflows: workflows:
version: 2 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 @@ ...@@ -7,6 +7,8 @@
"jsonschema2md": "./cli.js" "jsonschema2md": "./cli.js"
}, },
"scripts": { "scripts": {
"semantic-release": "semantic-release",
"commit": "git-cz",
"lint": "eslint .", "lint": "eslint .",
"lint-fix": "eslint . --fix", "lint-fix": "eslint . --fix",
"start": "node cli.js", "start": "node cli.js",
...@@ -28,11 +30,19 @@ ...@@ -28,11 +30,19 @@
"winston": "^3.1.0" "winston": "^3.1.0"
}, },
"devDependencies": { "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", "eslint": "^5.6.1",
"ghooks": "^2.0.4",
"istanbul": "^0.4.5", "istanbul": "^0.4.5",
"jasmine": "~3.3.0", "jasmine": "~3.3.0",
"jasmine-diff": "^0.1.3", "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": { "engines": {
"node": ">= 6.0.0" "node": ">= 6.0.0"
...@@ -45,5 +55,16 @@ ...@@ -45,5 +55,16 @@
"url": "https://github.com/adobe/jsonschema2md/issues" "url": "https://github.com/adobe/jsonschema2md/issues"
}, },
"license": "Apache-2.0", "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