Skip to content

Commit

Permalink
release scripts (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyodfat authored Mar 29, 2020
1 parent 53ca767 commit 6d8986f
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 20 deletions.
49 changes: 30 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@daostack/arc-experimental",
"version": "0.1.1-rc.9",
"version": "0.1.1-rc.10",
"description": "A platform for building DAOs",
"files": [
"contracts/",
Expand Down
17 changes: 17 additions & 0 deletions release-experimental.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

rm -rf ./node_modules
rm -rf ./build
git checkout origin/arc-factory
echo "npm install ..."
npm i
echo "truffle compile ..."
truffle compile
# publish npm
echo "Publishing to npm..."
npm publish
# tag on github
git tag experimental-$(cat package.json | jq -r '.version')
git push --tags
# done
echo "Release done!"
17 changes: 17 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

rm -rf ./node_modules
rm -rf ./build
git checkout origin/master
echo "npm install ..."
npm i
echo "truffle compile ..."
truffle compile
# publish npm
echo "Publishing to npm..."
npm publish
# tag on github
git tag $(cat package.json | jq -r '.version')
git push --tags
# done
echo "Release done!"

0 comments on commit 6d8986f

Please sign in to comment.