Skip to content

Commit

Permalink
fix: release script always exiting with code 1
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Mar 11, 2024
1 parent 78995d4 commit a250ae2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/bash
set -e -o pipefail
# usage: ./release minor -n
(git diff --quiet master @widgetti/[email protected] -- packages/solara-vuetify-app) || \
(git diff --quiet master @widgetti/[email protected] -- 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/[email protected] -- packages/solara-vuetify3-app) || \
exit 1;}
(git diff --quiet master @widgetti/[email protected] -- 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/[email protected] -- packages/solara-widget-manager) || \
exit 1;}
(git diff --quiet master @widgetti/[email protected] -- 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/[email protected] -- packages/solara-widget-manager8) || \
exit 1;}
(git diff --quiet master @widgetti/[email protected] -- 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
exit 1;}

version=$(bump2version --dry-run --list $* | grep new_version | sed -r s,"^.*=",,)
echo Version tag v$version
Expand Down

0 comments on commit a250ae2

Please sign in to comment.