Skip to content

Commit f5c72f9

Browse files
Brylie Christopher Oxleybrylie
Brylie Christopher Oxley
authored andcommitted
Initial publish script
1 parent e46f149 commit f5c72f9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

publish.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o errtrace
5+
set -o nounset
6+
7+
trap '_es=${?};
8+
_lo=${LINENO};
9+
_co=${BASH_COMMAND};
10+
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
11+
exit ${_es}' ERR
12+
13+
echo "Deleting contents of dist folder"
14+
rm -rf dist/*
15+
16+
echo "Starting build"
17+
npm run build-component
18+
echo "Finished build"
19+
20+
echo "Starting publish"
21+
npm publish --access public

0 commit comments

Comments
 (0)