Commit 6e3d9750 authored by Anthony Gautreau's avatar Anthony Gautreau
Browse files

Release : pas de commit de version si elle ne change pas

parent 9e57ae0f
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for release-api.sh: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -68,7 +68,8 @@ fi
echo "$NEW_VERSION" > "$VERSION_FILE"
(cd frontend && npm version "$NEW_VERSION" --no-git-tag-version --allow-same-version >/dev/null)
git add "$VERSION_FILE" frontend/package.json frontend/package-lock.json
git commit -m "Release: mise à jour version $NEW_VERSION"
# Déjà à cette version, pour une première release par exemple : rien à commiter.
git diff --cached --quiet || git commit -m "Release: mise à jour version $NEW_VERSION"
git push origin "$BRANCH"

echo "Suppression éventuelle de la branche split-api locale..."