publish-github-action.ts 382 B

12345678910111213141516
  1. #!/usr/bin/env bun
  2. import { $ } from "bun"
  3. try {
  4. await $`git tag -d github-v1`
  5. await $`git push origin :refs/tags/github-v1`
  6. } catch (e) {
  7. if (e instanceof Error && e.message.includes("not found")) {
  8. console.log("tag not found, continuing...")
  9. } else {
  10. throw e
  11. }
  12. }
  13. await $`git tag -a github-v1 -m "Update github-v1 to latest"`
  14. await $`git push origin github-v1`