]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
build: fix release script [skip ci]
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Nov 2021 10:26:22 +0000 (11:26 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Nov 2021 10:26:22 +0000 (11:26 +0100)
scripts/release.mjs

index 3d8d40138ad9a4629ffe271d34ea50516f239fa9..3939f6a88987ab5d144836c9c213f6e773ba296b 100644 (file)
@@ -56,6 +56,10 @@ async function main() {
       return
     }
 
+    const currentBranch = (
+      await run('git', ['branch', '--show-current'], { stdio: 'pipe' })
+    ).stdout
+
     if (currentBranch !== EXPECTED_BRANCH) {
       console.log(
         chalk.red(
@@ -68,10 +72,6 @@ async function main() {
     console.log(chalk.bold.white(`Skipping git checks...`))
   }
 
-  const currentBranch = (
-    await run('git', ['branch', '--show-current'], { stdio: 'pipe' })
-  ).stdout
-
   if (!skipCleanGitCheck) {
     const isOutdatedRE = new RegExp(
       `\\W${EXPECTED_BRANCH}\\W.*(?:fast-forwardable|local out of date)`,