Add script to build test release

This commit is contained in:
Sascha Mann
2019-11-24 19:19:56 +01:00
parent 67ef5af2fd
commit b199a80ea6

14
bin/build-test-release Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
branch_name="$(git symbolic-ref --short -q HEAD)"
git checkout -B test/"$branch_name"
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"