Add bash script to build & tag release

This commit is contained in:
Sascha Mann
2019-11-09 18:23:09 +01:00
parent 5334cf1301
commit d82325fb86

13
bin/build-release Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
git checkout -b releases/"$1"
npm install
npm run build
npm test
npm prune --production
sed -i 's/node_modules/!node_modules/g' .gitignore
git add node_modules
git commit -a -m "Add production dependencies & build"
git tag "$1"