]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
workflow: fix error catching
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 6 Jan 2022 14:47:08 +0000 (22:47 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 6 Jan 2022 14:47:08 +0000 (22:47 +0800)
scripts/prepublish.mjs

index daf5d7b6d170a9329a15fea836a28beb006f361d..b472c7f861e835f3b5a9d7c8e26a588301181fac 100644 (file)
@@ -12,7 +12,7 @@ await $`git add -A .`
 try {
   await $`git commit -m "version ${version} snapshot"`
 } catch (e) {
-  if (!e.message.includes('nothing to commit')) {
+  if (!e.stdout.includes('nothing to commit')) {
     throw e
   }
 }