@@ -247,45 +247,33 @@ jobs:
247247 path : release/*
248248 if-no-files-found : error
249249
250- # publish_cli:
251- # name: Publish CLI to npm
252- # needs: [preflight, build]
253- # runs-on: ubuntu-24.04
254- # steps:
255- # - name: Checkout
256- # uses: actions/checkout@v4
257-
258- # - name: Setup Bun
259- # uses: oven-sh/setup-bun@v2
260- # with:
261- # bun-version-file: package.json
262-
263- # - name: Setup Node
264- # uses: actions/setup-node@v4
265- # with:
266- # node-version-file: package.json
267- # registry-url: https://registry.npmjs.org
268-
269- # - name: Install dependencies
270- # run: bun install --frozen-lockfile
271-
272- # - name: Set CLI package version from release tag
273- # env:
274- # RELEASE_VERSION: ${{ needs.preflight.outputs.version }}
275- # run: |
276- # node --input-type=module -e '
277- # import { readFileSync, writeFileSync } from "node:fs";
278- # const packagePath = "apps/server/package.json";
279- # const packageJson = JSON.parse(readFileSync(packagePath, "utf8"));
280- # packageJson.version = process.env.RELEASE_VERSION;
281- # writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
282- # '
283-
284- # - name: Build CLI package
285- # run: bun run build --filter=@t3tools/web --filter=t3
286-
287- # - name: Publish CLI package
288- # run: bun --cwd apps/server publish --access public
250+ publish_cli :
251+ name : Publish CLI to npm
252+ needs : [preflight, build]
253+ runs-on : ubuntu-24.04
254+ steps :
255+ - name : Checkout
256+ uses : actions/checkout@v4
257+
258+ - name : Setup Bun
259+ uses : oven-sh/setup-bun@v2
260+ with :
261+ bun-version-file : package.json
262+
263+ - name : Setup Node
264+ uses : actions/setup-node@v4
265+ with :
266+ node-version-file : package.json
267+ registry-url : https://registry.npmjs.org
268+
269+ - name : Install dependencies
270+ run : bun install --frozen-lockfile
271+
272+ - name : Build CLI package
273+ run : bun run build --filter=@t3tools/web --filter=t3
274+
275+ - name : Publish CLI package
276+ run : bun --cwd apps/server publish --access public --tag alpha
289277
290278 release :
291279 name : Publish GitHub Release
0 commit comments