|
13 | 13 |
|
14 | 14 | permissions: |
15 | 15 | contents: write |
16 | | - id-token: write |
17 | 16 |
|
18 | 17 | jobs: |
19 | 18 | preflight: |
@@ -223,49 +222,9 @@ jobs: |
223 | 222 | path: release-publish/* |
224 | 223 | if-no-files-found: error |
225 | 224 |
|
226 | | - publish_cli: |
227 | | - name: Publish CLI to npm |
228 | | - needs: [preflight, build] |
229 | | - runs-on: ubuntu-24.04 |
230 | | - steps: |
231 | | - - name: Checkout |
232 | | - uses: actions/checkout@v6 |
233 | | - with: |
234 | | - ref: ${{ needs.preflight.outputs.ref }} |
235 | | - |
236 | | - - name: Setup Bun |
237 | | - uses: oven-sh/setup-bun@v2 |
238 | | - with: |
239 | | - bun-version-file: package.json |
240 | | - |
241 | | - - name: Setup Node |
242 | | - uses: actions/setup-node@v6 |
243 | | - with: |
244 | | - node-version-file: package.json |
245 | | - registry-url: https://registry.npmjs.org |
246 | | - |
247 | | - - name: Install dependencies |
248 | | - run: bun install --frozen-lockfile |
249 | | - |
250 | | - - name: Align package versions to release version |
251 | | - run: bun run scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}" |
252 | | - |
253 | | - - name: Build CLI package |
254 | | - run: bun run build --filter=@t3tools/web --filter=t3 |
255 | | - |
256 | | - - name: Publish CLI package |
257 | | - run: | |
258 | | - TAG="latest" |
259 | | - if [[ "${{ needs.preflight.outputs.is_prerelease }}" == "true" ]]; then |
260 | | - TAG="next" |
261 | | - fi |
262 | | - bun run apps/server/scripts/cli.ts publish --tag "$TAG" --app-version "${{ needs.preflight.outputs.version }}" --verbose |
263 | | - env: |
264 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
265 | | - |
266 | 225 | release: |
267 | 226 | name: Publish GitHub Release |
268 | | - needs: [preflight, build, publish_cli] |
| 227 | + needs: [preflight, build] |
269 | 228 | runs-on: ubuntu-24.04 |
270 | 229 | steps: |
271 | 230 | - name: Checkout |
@@ -317,7 +276,7 @@ jobs: |
317 | 276 |
|
318 | 277 | finalize: |
319 | 278 | name: Finalize release |
320 | | - needs: [preflight, publish_cli, release] |
| 279 | + needs: [preflight, release] |
321 | 280 | runs-on: ubuntu-24.04 |
322 | 281 | steps: |
323 | 282 | - name: Checkout |
|
0 commit comments