Frank 7 luni în urmă
părinte
comite
b79167ce66
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      scripts/publish-github-action.ts

+ 2 - 2
scripts/publish-github-action.ts

@@ -1,12 +1,12 @@
 #!/usr/bin/env bun
 
-import { $ } from "bun"
+import { $, ShellError } from "bun"
 
 try {
   await $`git tag -d github-v1`
   await $`git push origin :refs/tags/github-v1`
 } catch (e) {
-  if (e instanceof Error && e.message.includes("not found")) {
+  if (e instanceof ShellError && e.stderr.toString().match(/tag \S+ not found/)) {
     console.log("tag not found, continuing...")
   } else {
     throw e