Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
add scripts/release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed May 31, 2018
1 parent 6bbe243 commit f332a3d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"postinstall": "bash ./scripts/postinstall.sh",
"prettier": "prettier --write \"{src,webpack,.storybook}/**/*.js\"",
"publish-storybook": "bash ./scripts/publish-storybook.sh",
"release": "yarn compile && build",
"release": "bash ./scripts/release.sh",
"start": "bash ./scripts/start.sh",
"storybook": "NODE_ENV=development STORYBOOK_ENV=1 start-storybook -s ./static -p 4444",
"trans": "node scripts/trans"
Expand Down
17 changes: 17 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

if [ -z "$GH_TOKEN" ]; then
echo "GH_TOKEN is unset. can't release" >&2
exit 1
fi

if ! git diff-index --quiet HEAD --; then
echo "you have uncommitted local changes!" >&2
exit 1
fi

export SENTRY_URL=https://[email protected]/274561
yarn compile
build

0 comments on commit f332a3d

Please sign in to comment.