Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 2 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:

permissions:
contents: write
id-token: write

jobs:
preflight:
Expand Down Expand Up @@ -223,49 +222,9 @@ jobs:
path: release-publish/*
if-no-files-found: error

publish_cli:
name: Publish CLI to npm
needs: [preflight, build]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ needs.preflight.outputs.ref }}

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: package.json

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: package.json
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Align package versions to release version
run: bun run scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"

- name: Build CLI package
run: bun run build --filter=@t3tools/web --filter=t3

- name: Publish CLI package
run: |
TAG="latest"
if [[ "${{ needs.preflight.outputs.is_prerelease }}" == "true" ]]; then
TAG="next"
fi
bun run apps/server/scripts/cli.ts publish --tag "$TAG" --app-version "${{ needs.preflight.outputs.version }}" --verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

release:
name: Publish GitHub Release
needs: [preflight, build, publish_cli]
needs: [preflight, build]
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand Down Expand Up @@ -317,7 +276,7 @@ jobs:

finalize:
name: Finalize release
needs: [preflight, publish_cli, release]
needs: [preflight, release]
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand Down
Loading