"scripts": {
"build": "yarn rollup -c rollup.config.js",
"dev": "webpack-dev-server --mode=development",
+ "release": "bash scripts/release.sh",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 2",
"build:playground": "webpack --env.prod",
"dev:examples": "webpack-dev-server --mode=development --config examples/webpack.config.js",
--- /dev/null
+set -e
+echo "Enter alpha version e.g., 2 will generate 4.0.0-alpha.2: "
+read ALPHA
+
+VERSION="4.0.0-alpha.$ALPHA"
+
+read -p "Releasing v$VERSION - are you sure? (y/n)" -n 1 -r
+echo # (optional) move to a new line
+if [[ $REPLY =~ ^[Yy]$ ]]
+then
+ echo "Releasing v$VERSION ..."
+ npm test
+
+ # commit
+ yarn publish --tag next --new-version $VERSION
+
+ # changelog
+ yarn run changelog
+ echo "Please check the git history and the changelog and press enter"
+ read OKAY
+ git add CHANGELOG.md
+ git commit -m "chore(changelog): $VERSION"
+
+ # publish
+ git push origin refs/tags/v$VERSION
+ git push
+fi