authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 22:42:21-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 22:42:21-08:00
log3c121585da3306491c9d12ad5f94d2e661e2fc33
tree7b30039eb223bffb8f8685e5c302a826e005e3bf
parent40acfbd2df59bdb0df50edbaf1c7c4d8ae6d9907

publish cli?


1 files changed, 27 insertions(+), 39 deletions(-)

.github/workflows/release.yml+27-39
...@@ -247,45 +247,33 @@ jobs:...@@ -247,45 +247,33 @@ jobs:
247 path: release/*247 path: release/*
248 if-no-files-found: error248 if-no-files-found: error
249249
250 # publish_cli:250 publish_cli:
251 # name: Publish CLI to npm251 name: Publish CLI to npm
252 # needs: [preflight, build]252 needs: [preflight, build]
253 # runs-on: ubuntu-24.04253 runs-on: ubuntu-24.04
254 # steps:254 steps:
255 # - name: Checkout255 - name: Checkout
256 # uses: actions/checkout@v4256 uses: actions/checkout@v4
257257
258 # - name: Setup Bun258 - name: Setup Bun
259 # uses: oven-sh/setup-bun@v2259 uses: oven-sh/setup-bun@v2
260 # with:260 with:
261 # bun-version-file: package.json261 bun-version-file: package.json
262262
263 # - name: Setup Node263 - name: Setup Node
264 # uses: actions/setup-node@v4264 uses: actions/setup-node@v4
265 # with:265 with:
266 # node-version-file: package.json266 node-version-file: package.json
267 # registry-url: https://registry.npmjs.org267 registry-url: https://registry.npmjs.org
268268
269 # - name: Install dependencies269 - name: Install dependencies
270 # run: bun install --frozen-lockfile270 run: bun install --frozen-lockfile
271271
272 # - name: Set CLI package version from release tag272 - name: Build CLI package
273 # env:273 run: bun run build --filter=@t3tools/web --filter=t3
274 # RELEASE_VERSION: ${{ needs.preflight.outputs.version }}274
275 # run: |275 - name: Publish CLI package
276 # node --input-type=module -e '276 run: bun --cwd apps/server publish --access public --tag alpha
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
289277
290 release:278 release:
291 name: Publish GitHub Release279 name: Publish GitHub Release