|
7 | 7 |
|
8 | 8 | permissions: |
9 | 9 | contents: write |
| 10 | + id-token: write |
10 | 11 |
|
11 | 12 | jobs: |
12 | 13 | preflight: |
@@ -158,9 +159,50 @@ jobs: |
158 | 159 | path: release/* |
159 | 160 | if-no-files-found: error |
160 | 161 |
|
| 162 | + # publish_cli: |
| 163 | + # name: Publish CLI to npm |
| 164 | + # needs: [preflight, build] |
| 165 | + # runs-on: ubuntu-24.04 |
| 166 | + # steps: |
| 167 | + # - name: Checkout |
| 168 | + # uses: actions/checkout@v4 |
| 169 | + |
| 170 | + # - name: Setup Bun |
| 171 | + # uses: oven-sh/setup-bun@v2 |
| 172 | + # with: |
| 173 | + # bun-version-file: package.json |
| 174 | + |
| 175 | + # - name: Setup Node |
| 176 | + # uses: actions/setup-node@v4 |
| 177 | + # with: |
| 178 | + # node-version-file: package.json |
| 179 | + # registry-url: https://registry.npmjs.org |
| 180 | + |
| 181 | + # - name: Install dependencies |
| 182 | + # run: bun install --frozen-lockfile |
| 183 | + |
| 184 | + # - name: Set CLI package version from release tag |
| 185 | + # env: |
| 186 | + # RELEASE_VERSION: ${{ needs.preflight.outputs.version }} |
| 187 | + # run: | |
| 188 | + # node --input-type=module -e ' |
| 189 | + # import { readFileSync, writeFileSync } from "node:fs"; |
| 190 | + # const packagePath = "apps/server/package.json"; |
| 191 | + # const packageJson = JSON.parse(readFileSync(packagePath, "utf8")); |
| 192 | + # packageJson.version = process.env.RELEASE_VERSION; |
| 193 | + # writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`); |
| 194 | + # ' |
| 195 | + |
| 196 | + # - name: Build CLI package |
| 197 | + # run: bun run build --filter=@t3tools/web --filter=t3 |
| 198 | + |
| 199 | + # - name: Publish CLI package |
| 200 | + # run: bun --cwd apps/server publish --access public |
| 201 | + |
161 | 202 | release: |
162 | 203 | name: Publish GitHub Release |
163 | 204 | needs: [preflight, build] |
| 205 | + # needs: [preflight, build, publish_cli] |
164 | 206 | runs-on: ubuntu-24.04 |
165 | 207 | steps: |
166 | 208 | - name: Download all desktop artifacts |
|
0 commit comments