]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: ensure the local branch is up to date before versioning [skip ci]
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 2 Apr 2025 18:11:53 +0000 (02:11 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 2 Apr 2025 18:11:53 +0000 (02:11 +0800)
package.json

index e4982ba4a1251b223fdedbd389ac33326dd3738f..cce19e12e0a1f83a33ac6f9a7dca3c0e4de35770 100644 (file)
@@ -24,6 +24,7 @@
     "pretest": "pnpm run build && pnpm run snapshot",
     "test": "zx ./scripts/test.mjs",
     "test:unit": "vitest",
+    "preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'",
     "postversion": "zx ./scripts/postversion.mjs",
     "prepublishOnly": "pnpm run build"
   },