-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): fix release script to require environment variable
- Loading branch information
Showing
6 changed files
with
18 additions
and
26,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
set -e | ||
set -u | ||
|
||
if [[ -z "${TENSEI_PACKAGE_VERSION}" ]]; then | ||
echo "You must set the TENSEI_PACKAGE_VERSION environment variable before publishing a release." | ||
exit 1 | ||
else | ||
echo "Publishing version ${TENSEI_PACKAGE_VERSION}" | ||
fi | ||
|
||
yarn before:release "$@" | ||
git add . | ||
git commit -m "chore(release): publish v`node -p 'require(\"./lerna.json\").version'`" | ||
git commit -m "chore(release): publish v${TENSEI_PACKAGE_VERSION}" | ||
yarn build | ||
yarn lerna publish "$@" |
Oops, something went wrong.