diff --git a/packages/solara-vuetify-app/.bumpversion.cfg b/packages/solara-vuetify-app/.bumpversion.cfg index 6cf8735fd..b9e3104bc 100644 --- a/packages/solara-vuetify-app/.bumpversion.cfg +++ b/packages/solara-vuetify-app/.bumpversion.cfg @@ -10,4 +10,6 @@ message = Bump version solara-vuetify-app: {current_version} → {new_version} [bumpversion:file:../../solara/server/templates/solara.html.j2] +[bumpversion:file:../../release.sh] + [bumpversion:file:../assets/hatch_build.py] diff --git a/packages/solara-vuetify3-app/.bumpversion.cfg b/packages/solara-vuetify3-app/.bumpversion.cfg index 94d8c0dab..4f4b840ba 100644 --- a/packages/solara-vuetify3-app/.bumpversion.cfg +++ b/packages/solara-vuetify3-app/.bumpversion.cfg @@ -10,4 +10,6 @@ message = Bump version solara-vuetify3-app: {current_version} → {new_version} [bumpversion:file:../../solara/server/templates/solara.html.j2] +[bumpversion:file:../../release.sh] + [bumpversion:file:../assets/hatch_build.py] diff --git a/release.sh b/release.sh index 0f104ed03..ca4e1cf97 100755 --- a/release.sh +++ b/release.sh @@ -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 -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 -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 -n) && \ + (cd packages/solara-vuetify3-app && ./release.sh -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 -n) && \ + (cd packages/solara-vuetify3-app && ./release.sh -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