- Move install, lint, typecheck, and test steps ahead of release commit/tag in `release.yml` - Add `buildVersion` to staged desktop `package.json` and set it to the app version
Unified · Split
| @@ -84,6 +84,18 @@ jobs: · 83 unmodified lines | ||
| 84 | 84 | if: github.event_name == 'workflow_dispatch' |
| 85 | 85 | run: bun install |
| 86 | 86 | |
| 87 | + - name: Install dependencies | |
| 88 | + run: bun install --frozen-lockfile | |
| 89 | + | |
| 90 | + - name: Lint | |
| 91 | + run: bun run lint | |
| 92 | + | |
| 93 | + - name: Typecheck | |
| 94 | + run: bun run typecheck | |
| 95 | + | |
| 96 | + - name: Test | |
| 97 | + run: bun run test | |
| 98 | + | |
| 87 | 99 | - name: Commit and push release version + tag |
| 88 | 100 | if: github.event_name == 'workflow_dispatch' |
| 89 | 101 | shell: bash |
| @@ -117,18 +129,6 @@ jobs: · 27 unmodified lines | ||
| 117 | 129 | echo "value=${GITHUB_SHA}" >> "$GITHUB_OUTPUT" |
| 118 | 130 | fi |
| 119 | 131 | |
| 120 | − - name: Install dependencies | |
| 121 | − run: bun install --frozen-lockfile | |
| 122 | − | |
| 123 | − - name: Lint | |
| 124 | − run: bun run lint | |
| 125 | − | |
| 126 | − - name: Typecheck | |
| 127 | − run: bun run typecheck | |
| 128 | − | |
| 129 | − - name: Test | |
| 130 | − run: bun run test | |
| 131 | − | |
| 132 | 132 | build: |
| 133 | 133 | name: Build ${{ matrix.label }} |
| 134 | 134 | needs: preflight |
| @@ -99,6 +99,7 @@ interface ResolvedBuildOptions { · 98 unmodified lines | ||
| 99 | 99 | interface StagePackageJson { |
| 100 | 100 | readonly name: string; |
| 101 | 101 | readonly version: string; |
| 102 | + readonly buildVersion: string; | |
| 102 | 103 | readonly private: true; |
| 103 | 104 | readonly description: string; |
| 104 | 105 | readonly author: string; |
| @@ -488,6 +489,7 @@ const buildDesktopArtifact = Effect.fn(function* (options: ResolvedBuildOptions) · 383 unmodified lines | ||
| 488 | 489 | const stagePackageJson: StagePackageJson = { |
| 489 | 490 | name: "t3-code-desktop", |
| 490 | 491 | version: appVersion, |
| 492 | + buildVersion: appVersion, | |
| 491 | 493 | private: true, |
| 492 | 494 | description: "T3 Code desktop build", |
| 493 | 495 | author: "T3 Tools", |