Skip to content

Commit aa4d79e

Browse files
update release script to include root README
1 parent 1bac6f4 commit aa4d79e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

release.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@
33
# Exit script as soon as a command fails.
44
set -o errexit
55

6+
echo "### Release script started..."
67
yarn build
8+
echo "### Build finished. Copying abis."
79
rm -rf contracts/abi
810
mkdir -p contracts/abi
911
# copy all abis to contracts/abi
10-
find artifacts/contracts ! -iregex ".*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi \;
11-
find artifacts/@openzeppelin ! -iregex ".*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi \;
12+
find artifacts/contracts ! -iregex ".*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi 2>/dev/null \;
13+
find artifacts/@openzeppelin ! -iregex ".*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi 2>/dev/null \;
1214
# remove non-abi files
1315
rm contracts/abi/*.dbg.json
16+
echo "### Copying README."
17+
# copy root README to contracts folder
18+
cp README.md contracts/README.md
1419
# publish from contracts folder
1520
cd contracts
21+
echo "### Publishing..."
1622
np --any-branch --no-tests
23+
# delete copied README
24+
rm README.md
1725
# back to root folder
18-
cd -
26+
cd -
27+
echo "### Done."

0 commit comments

Comments
 (0)