devops: allow dirty tree when publishing ToT release

This commit is contained in:
Max Schmitt 2021-10-11 17:13:21 +02:00
parent 9e0ee0e37e
commit 4ae3a07a75

View file

@ -57,10 +57,6 @@ if [[ $1 == "--release" ]]; then
fi
NPM_PUBLISH_TAG="latest"
elif [[ $1 == "--tip-of-tree" ]]; then
if [[ $(git status -s) != " M package.json" ]]; then
echo "ERROR: git status is unexpected; some uncommitted changes or untracked files"
exit 1
fi
# Ensure package version contains dash.
if [[ "${VERSION}" != *-* ]]; then
echo "ERROR: cannot publish release version with --tip-of-tree flag"