Skip to content

Commit ebaa6e3

Browse files
committedNov 17, 2021
fix: add back accidentally deleted deployment check
Note: This check is still broken and prevents releasing. Adding it back so that it can be properly fixed instead of deleted
1 parent 1f848d5 commit ebaa6e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎material.angular.io/tools/deploy.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ projectId=${PROJECT_ID[$version, $mode]}
3636

3737
# Prevent deployment if we have a pre-release version, using the cdk
3838
# version as a proxy for all components repo package versions.
39-
39+
cdk_prerelease=$(cat package.json | grep cdk | egrep next\|rc)
40+
if [[ "${cdk_prerelease}" ]]; then
41+
if [[ "${version}" == "stable" && "${mode}" == "prod" ]]; then
42+
echo "Cannot publish a prerelease version to stable prod"
43+
exit 1
44+
fi
45+
fi
4046

4147
echo ""
4248
echo "NOTE: Make sure to refresh the docs-content to match the new version of docs."

0 commit comments

Comments
 (0)
Please sign in to comment.