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 <justsisyphus@users.noreply.github.com>
This commit is contained in:
parent
34863a77ef
commit
4d9c664694
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@ -8,12 +8,13 @@ on:
|
|||||||
description: "Bump major, minor, or patch"
|
description: "Bump major, minor, or patch"
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
|
default: patch
|
||||||
options:
|
options:
|
||||||
- major
|
|
||||||
- minor
|
|
||||||
- patch
|
- patch
|
||||||
|
- minor
|
||||||
|
- major
|
||||||
version:
|
version:
|
||||||
description: "Override version (optional)"
|
description: "Override version (e.g., 3.0.0-beta.6 for beta release). Takes precedence over bump."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@ -104,9 +105,9 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
echo "=== Running bun build (main) ==="
|
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) ==="
|
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 ==="
|
echo "=== Running tsc ==="
|
||||||
tsc --emitDeclarationOnly
|
tsc --emitDeclarationOnly
|
||||||
echo "=== Running build:schema ==="
|
echo "=== Running build:schema ==="
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user