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