]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
build: ignore branch check
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Nov 2021 10:13:59 +0000 (11:13 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Nov 2021 10:19:27 +0000 (11:19 +0100)
scripts/release.mjs

index 1a4338256827aee41f600a78984653239ddbb3e9..3d8d40138ad9a4629ffe271d34ea50516f239fa9 100644 (file)
@@ -55,6 +55,15 @@ async function main() {
       console.log(chalk.red(`Git repo isn't clean.`))
       return
     }
+
+    if (currentBranch !== EXPECTED_BRANCH) {
+      console.log(
+        chalk.red(
+          `You should be on brach "${EXPECTED_BRANCH}" but are on "${currentBranch}"`
+        )
+      )
+      return
+    }
   } else {
     console.log(chalk.bold.white(`Skipping git checks...`))
   }
@@ -63,15 +72,6 @@ async function main() {
     await run('git', ['branch', '--show-current'], { stdio: 'pipe' })
   ).stdout
 
-  if (currentBranch !== EXPECTED_BRANCH) {
-    console.log(
-      chalk.red(
-        `You should be on brach "${EXPECTED_BRANCH}" but are on "${currentBranch}"`
-      )
-    )
-    return
-  }
-
   if (!skipCleanGitCheck) {
     const isOutdatedRE = new RegExp(
       `\\W${EXPECTED_BRANCH}\\W.*(?:fast-forwardable|local out of date)`,