diff --git a/sites/dev/skip_build.mjs b/sites/dev/skip_build.mjs index f86092edb91..091aeae9169 100755 --- a/sites/dev/skip_build.mjs +++ b/sites/dev/skip_build.mjs @@ -20,21 +20,21 @@ if (branch === 'develop') { process.exit(1) } -// Only build pull requests that made changes to lab +// Only build pull requests that made changes to dev if (process.env.VERCEL_GIT_PULL_REQUEST_ID) { try { const changes = execSync( `git diff --name-only $(git merge-base develop ${branch}) ${branch} sites/shared/ sites/dev` ).toString() if (changes) { - console.log('✅ - Lab Pull Request - Proceed to build') + console.log('✅ - Dev Pull Request - Proceed to build') process.exit(1) } } catch { // just don't error out } - console.log('🛑 - Pull Request made no changes to Lab - Do not build') + console.log('🛑 - Pull Request made no changes to Dev - Do not build') process.exit(0) } diff --git a/sites/org/skip_build.mjs b/sites/org/skip_build.mjs index b9f60f5f938..3164bade8b2 100755 --- a/sites/org/skip_build.mjs +++ b/sites/org/skip_build.mjs @@ -1,8 +1,6 @@ import process from 'node:process' import { execSync } from 'child_process' -const branches = ['develop', 'joost'] - // Do not block production builds if (process.env.VERCEL_ENV === 'production') { console.log('✅ - Production build - Proceed to build') @@ -22,21 +20,21 @@ if (branch === 'develop') { process.exit(1) } -// Only build pull requests that made changes to lab +// Only build pull requests that made changes to org if (process.env.VERCEL_GIT_PULL_REQUEST_ID) { try { const changes = execSync( `git diff --name-only $(git merge-base develop ${branch}) ${branch} sites/shared/ sites/org` ).toString() if (changes) { - console.log('✅ - Lab Pull Request - Proceed to build') + console.log('✅ - Org Pull Request - Proceed to build') process.exit(1) } } catch { // just don't error out } - console.log('🛑 - Pull Request made no changes to Lab - Do not build') + console.log('🛑 - Pull Request made no changes to Org - Do not build') process.exit(0) } diff --git a/sites/sanity/skip_build.mjs b/sites/sanity/skip_build.mjs index 17fec486bfb..68485c9a5c3 100755 --- a/sites/sanity/skip_build.mjs +++ b/sites/sanity/skip_build.mjs @@ -1,4 +1,5 @@ import process from 'node:process' +import { execSync } from 'child_process' // For now, never build CMS process.exit(0) @@ -22,21 +23,21 @@ if (branch === 'develop') { process.exit(1) } -// Only build pull requests that made changes to lab +// Only build pull requests that made changes to sanity if (process.env.VERCEL_GIT_PULL_REQUEST_ID) { try { const changes = execSync( `git diff --name-only $(git merge-base develop ${branch}) ${branch} sites/sanity` ).toString() if (changes) { - console.log('✅ - Lab Pull Request - Proceed to build') + console.log('✅ - Sanity Pull Request - Proceed to build') process.exit(1) } } catch { // just don't error out } - console.log('🛑 - Pull Request made no changes to Lab - Do not build') + console.log('🛑 - Pull Request made no changes to Sanity - Do not build') process.exit(0) }