| ... | ... | @@ -257,6 +257,7 @@ jobs: |
| 257 | 257 | uses: softprops/action-gh-release@v2 |
| 258 | 258 | with: |
| 259 | 259 | tag_name: ${{ needs.preflight.outputs.tag }} |
| 260 | target_commitish: ${{ needs.preflight.outputs.ref }} |
| 260 | 261 | name: T3 Code v${{ needs.preflight.outputs.version }} |
| 261 | 262 | generate_release_notes: true |
| 262 | 263 | make_latest: true |
| ... | ... | @@ -290,12 +291,13 @@ jobs: |
| 290 | 291 | with: |
| 291 | 292 | node-version-file: package.json |
| 292 | 293 | |
| 293 | | - name: Update version strings |
| 294 | - id: update_versions |
| 295 | name: Update version strings |
| 294 | 296 | env: |
| 295 | 297 | RELEASE_VERSION: ${{ needs.preflight.outputs.version }} |
| 296 | 298 | run: | |
| 297 | 299 | node --input-type=module -e ' |
| 298 | | import { readFileSync, writeFileSync } from "node:fs"; |
| 300 | import { appendFileSync, readFileSync, writeFileSync } from "node:fs"; |
| 299 | 301 | |
| 300 | 302 | const files = [ |
| 301 | 303 | "apps/server/package.json", |
| ... | ... | @@ -317,15 +319,20 @@ jobs: |
| 317 | 319 | if (!changed) { |
| 318 | 320 | console.log("All package.json versions already match release version."); |
| 319 | 321 | } |
| 322 | |
| 323 | appendFileSync(process.env.GITHUB_OUTPUT, `changed=${changed}\n`); |
| 320 | 324 | ' |
| 321 | 325 | |
| 322 | 326 | - name: Format package.json files |
| 327 | if: steps.update_versions.outputs.changed == 'true' |
| 323 | 328 | run: bunx oxfmt apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json |
| 324 | 329 | |
| 325 | 330 | - name: Refresh lockfile |
| 331 | if: steps.update_versions.outputs.changed == 'true' |
| 326 | 332 | run: bun install |
| 327 | 333 | |
| 328 | 334 | - name: Commit and push version bump |
| 335 | if: steps.update_versions.outputs.changed == 'true' |
| 329 | 336 | shell: bash |
| 330 | 337 | env: |
| 331 | 338 | RELEASE_TAG: ${{ needs.preflight.outputs.tag }} |