Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit ae769db

Browse files
authored
Merge pull request #46 from netlify/automate-release
Automate release process
2 parents 6070f83 + 4b0eee9 commit ae769db

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# netlify Change Log
1+
# Change Log
2+
23
All notable changes to this project will be documented in this file.
4+
35
This project adheres to [Semantic Versioning](http://semver.org/).
46

57
## 2.4.1 - 2019-03-04

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"eslint-plugin-node": "^8.0.1",
7575
"eslint-plugin-prettier": "^3.0.1",
7676
"from2-string": "^1.1.0",
77+
"gh-release": "^3.5.0",
7778
"npm-run-all": "^4.1.3",
7879
"nyc": "^13.3.0",
7980
"prettier": "^1.16.4",
@@ -102,13 +103,14 @@
102103
"build:webpack": "webpack",
103104
"ci": "run-s test build",
104105
"deptree": "depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > site/dist/dependencygraph.svg",
105-
"prepublishOnly": "npm run build:webpack",
106+
"prepublishOnly": "npm run build:webpack && git push && git push --tags && gh-release",
106107
"report": "nyc report --reporter=text-lcov | coveralls",
107108
"test": "run-s test:*",
108109
"test:ava": "nyc --reporter=lcov ava --verbose && nyc report",
109110
"test:deps": "dependency-check ./package.json --entry \"src/**/!(*.test).js\" --unused --missing --no-dev --no-peer",
110111
"test:lint": "eslint src",
111112
"watch": "nyc --reporter=lcov ava --watch",
112-
"clean": "rimraf dist coverage"
113+
"clean": "rimraf dist coverage",
114+
"version": "auto-changelog -p --template keepachangelog --breaking-pattern breaking && git add CHANGELOG.md"
113115
}
114116
}

0 commit comments

Comments
 (0)