docs(core): allow builds when PRs are merged into master (#6061)

This commit is contained in:
Jack Hsu 2021-06-17 15:47:45 -04:00 committed by GitHub
parent 8ac0f3f5ff
commit 4b6dd40a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -1,7 +1,8 @@
{
"implicitDependencies": {
"package.json": "*",
".eslintrc.json": "*"
".eslintrc.json": "*",
"scripts/vercel/*": ["nx-dev"]
},
"affected": {
"defaultBase": "master"

View File

@ -1,11 +1,5 @@
#!/bin/bash
# Ignore all production deployments since this should be a manual promotion
if [ $VERCEL_GIT_COMMIT_REF == "master" ]; then
echo "🛑 - Build cancelled"
exit 0
fi
# This script is used in Vercel to determine whether to continue the build or not for nx-dev.
# Exits with 0 if the build should be skipped, and exits with 1 to continue.