From 4d9c664694369e321a05a3dea6b11281b98ed44d Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Wed, 14 Jan 2026 10:59:33 +0900 Subject: [PATCH] ci: improve publish workflow UX with beta release example (#760) * ci: improve publish workflow UX with beta release example * fix: remove non-existent google-auth.ts from build, add missing --external flag --------- Co-authored-by: justsisyphus --- .github/workflows/publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa7d9fd7..279609db 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,12 +8,13 @@ on: description: "Bump major, minor, or patch" required: true type: choice + default: patch options: - - major - - minor - patch + - minor + - major version: - description: "Override version (optional)" + description: "Override version (e.g., 3.0.0-beta.6 for beta release). Takes precedence over bump." required: false type: string @@ -104,9 +105,9 @@ jobs: - name: Build run: | echo "=== Running bun build (main) ===" - bun build src/index.ts src/google-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi + bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi echo "=== Running bun build (CLI) ===" - bun build src/cli/index.ts --outdir dist/cli --target bun --format esm + bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi echo "=== Running tsc ===" tsc --emitDeclarationOnly echo "=== Running build:schema ==="