mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 02:56:54 +08:00
Add script to build test release
This commit is contained in:
14
bin/build-test-release
Normal file
14
bin/build-test-release
Normal 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"
|
||||
Reference in New Issue
Block a user