diff --git a/CHANGELOG.md b/CHANGELOG.md index a56e806..cd7c5df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ -# netlify Change Log +# Change Log + All notable changes to this project will be documented in this file. + This project adheres to [Semantic Versioning](http://semver.org/). ## 2.4.1 - 2019-03-04 diff --git a/package.json b/package.json index 50be9ea..b94e16a 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "eslint-plugin-node": "^8.0.1", "eslint-plugin-prettier": "^3.0.1", "from2-string": "^1.1.0", + "gh-release": "^3.5.0", "npm-run-all": "^4.1.3", "nyc": "^13.3.0", "prettier": "^1.16.4", @@ -102,13 +103,14 @@ "build:webpack": "webpack", "ci": "run-s test build", "deptree": "depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > site/dist/dependencygraph.svg", - "prepublishOnly": "npm run build:webpack", + "prepublishOnly": "npm run build:webpack && git push && git push --tags && gh-release", "report": "nyc report --reporter=text-lcov | coveralls", "test": "run-s test:*", "test:ava": "nyc --reporter=lcov ava --verbose && nyc report", "test:deps": "dependency-check ./package.json --entry \"src/**/!(*.test).js\" --unused --missing --no-dev --no-peer", "test:lint": "eslint src", "watch": "nyc --reporter=lcov ava --watch", - "clean": "rimraf dist coverage" + "clean": "rimraf dist coverage", + "version": "auto-changelog -p --template keepachangelog --breaking-pattern breaking && git add CHANGELOG.md" } }