Skip to content

Commit 6d8986f

Browse files
authored
release scripts (#729)
1 parent 53ca767 commit 6d8986f

File tree

4 files changed

+65
-20
lines changed

4 files changed

+65
-20
lines changed

package-lock.json

Lines changed: 30 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@daostack/arc-experimental",
3-
"version": "0.1.1-rc.9",
3+
"version": "0.1.1-rc.10",
44
"description": "A platform for building DAOs",
55
"files": [
66
"contracts/",

release-experimental.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
rm -rf ./node_modules
4+
rm -rf ./build
5+
git checkout origin/arc-factory
6+
echo "npm install ..."
7+
npm i
8+
echo "truffle compile ..."
9+
truffle compile
10+
# publish npm
11+
echo "Publishing to npm..."
12+
npm publish
13+
# tag on github
14+
git tag experimental-$(cat package.json | jq -r '.version')
15+
git push --tags
16+
# done
17+
echo "Release done!"

release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
rm -rf ./node_modules
4+
rm -rf ./build
5+
git checkout origin/master
6+
echo "npm install ..."
7+
npm i
8+
echo "truffle compile ..."
9+
truffle compile
10+
# publish npm
11+
echo "Publishing to npm..."
12+
npm publish
13+
# tag on github
14+
git tag $(cat package.json | jq -r '.version')
15+
git push --tags
16+
# done
17+
echo "Release done!"

0 commit comments

Comments
 (0)