-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check for unreleased javascript changes when releasing Solara
- Loading branch information
1 parent
8b80650
commit 54774b2
Showing
3 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
#!/bin/bash | ||
set -e -o pipefail | ||
# usage: ./release minor -n | ||
(git diff --quiet master @widgetti/solara-vuetify-app@10.0.0 -- packages/solara-vuetify-app) || \ | ||
echo -e "\033[31m There are unreleased changes to the solara-vuetify-app package.\n Please release the javascript package before Solara by running \n\n \ | ||
\033[0m (cd packages/solara-vuetify-app && ./release.sh <patch | minor | major> -n)\n"; \ | ||
exit 1 | ||
(git diff --quiet master @widgetti/solara-vuetify3-app@5.0.0 -- packages/solara-vuetify3-app) || \ | ||
echo -e "\033[31m There are unreleased changes to the solara-vuetify3-app package.\n Please release the javascript package before Solara by running \n\n \ | ||
\033[0m (cd packages/solara-vuetify3-app && ./release.sh <patch | minor | major> -n)\n"; \ | ||
exit 1 | ||
(git diff --quiet master @widgetti/solara-vuetify3-app@5.0.0 -- packages/solara-widget-manager) || \ | ||
echo -e "\033[31m There are unreleased changes to the solara-widget-manager package.\n Please release the javascript package before Solara by running \n\n \ | ||
\033[0m (cd packages/solara-vuetify-app && ./release.sh <patch | minor | major> -n) && \ | ||
(cd packages/solara-vuetify3-app && ./release.sh <patch | minor | major> -n)\n"; \ | ||
exit 1 | ||
(git diff --quiet master @widgetti/solara-vuetify3-app@5.0.0 -- packages/solara-widget-manager8) || \ | ||
echo -e "\033[31m There are unreleased changes to the solara-widget-manager8 package.\n Please release the javascript package before Solara by running \n\n \ | ||
\033[0m (cd packages/solara-vuetify-app && ./release.sh <patch | minor | major> -n) && \ | ||
(cd packages/solara-vuetify3-app && ./release.sh <patch | minor | major> -n)\n"; \ | ||
exit 1 | ||
|
||
version=$(bump2version --dry-run --list $* | grep new_version | sed -r s,"^.*=",,) | ||
echo Version tag v$version | ||
bumpversion $* --verbose && git push upstream master v$version |