|
7 | 7 | - "!v*-nightly.*" |
8 | 8 | schedule: |
9 | 9 | # Off minute zero: GitHub delays scheduled runs most at the top of the hour. |
10 | | - - cron: "7 */3 * * *" |
| 10 | + - cron: "38 */3 * * *" |
11 | 11 | workflow_dispatch: |
12 | 12 | inputs: |
13 | 13 | channel: |
@@ -111,6 +111,8 @@ jobs: |
111 | 111 | node-version-file: package.json |
112 | 112 | cache: true |
113 | 113 | run-install: true |
| 114 | + env: |
| 115 | + pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata |
114 | 116 |
|
115 | 117 | - id: release_meta |
116 | 118 | name: Resolve release version |
@@ -174,6 +176,14 @@ jobs: |
174 | 176 | --current-tag "${{ steps.release_meta.outputs.tag }}" \ |
175 | 177 | --github-output |
176 | 178 |
|
| 179 | + # Share only the verification results, not the large registry metadata cache. |
| 180 | + - name: Upload dependency verification |
| 181 | + continue-on-error: true |
| 182 | + uses: actions/upload-artifact@v7 |
| 183 | + with: |
| 184 | + name: release-dependency-verification |
| 185 | + path: ${{ runner.temp }}/pnpm-metadata/lockfile-verified.jsonl |
| 186 | + |
177 | 187 | quality: |
178 | 188 | name: Release quality checks |
179 | 189 | needs: [preflight] |
@@ -206,6 +216,9 @@ jobs: |
206 | 216 | - name: Typecheck |
207 | 217 | run: vp run typecheck |
208 | 218 |
|
| 219 | + - name: Install browser secret helper build libraries |
| 220 | + run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config |
| 221 | + |
209 | 222 | - name: Test |
210 | 223 | run: vp run test |
211 | 224 |
|
@@ -446,7 +459,18 @@ jobs: |
446 | 459 | path: ${{ steps.package_cache_path.outputs.path }} |
447 | 460 | key: windows-release-packages-v1-${{ matrix.arch }}-${{ hashFiles('pnpm-lock.yaml') }} |
448 | 461 |
|
| 462 | + # pnpm checks the lockfile and policy before reusing this result. A missing |
| 463 | + # artifact leaves the cache empty, so installation runs the checks again. |
| 464 | + - name: Download dependency verification |
| 465 | + continue-on-error: true |
| 466 | + uses: actions/download-artifact@v8 |
| 467 | + with: |
| 468 | + name: release-dependency-verification |
| 469 | + path: ${{ runner.temp }}/pnpm-metadata |
| 470 | + |
449 | 471 | - name: Install desktop dependencies |
| 472 | + env: |
| 473 | + pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata |
450 | 474 | run: vp install --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts... |
451 | 475 |
|
452 | 476 | - name: Cache resource monitor |
@@ -503,12 +527,13 @@ jobs: |
503 | 527 | exit $code |
504 | 528 | } |
505 | 529 |
|
506 | | - - name: Install ImageMagick |
| 530 | + - name: Install Linux desktop build libraries |
507 | 531 | if: matrix.platform == 'linux' |
508 | 532 | shell: bash |
509 | 533 | run: | |
| 534 | + sudo apt-get update |
| 535 | + sudo apt-get install -y libsecret-1-dev pkg-config |
510 | 536 | if ! command -v magick >/dev/null 2>&1 && ! command -v convert >/dev/null 2>&1; then |
511 | | - sudo apt-get update |
512 | 537 | sudo apt-get install -y imagemagick |
513 | 538 | fi |
514 | 539 |
|
@@ -583,6 +608,7 @@ jobs: |
583 | 608 | - name: Build desktop artifact |
584 | 609 | shell: bash |
585 | 610 | env: |
| 611 | + pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata |
586 | 612 | T3CODE_DESKTOP_REUSE_RESOURCE_MONITOR: ${{ steps.resource_monitor_cache.outputs.cache-hit == 'true' }} |
587 | 613 | CSC_LINK: ${{ secrets.CSC_LINK }} |
588 | 614 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} |
@@ -851,35 +877,6 @@ jobs: |
851 | 877 | fi |
852 | 878 | done |
853 | 879 |
|
854 | | - # - name: Merge Windows updater manifests |
855 | | - # run: | |
856 | | - # shopt -s nullglob |
857 | | - # found_windows_manifest=false |
858 | | - # for x64_manifest in release-assets/*-win-x64.yml; do |
859 | | - # if [[ "$(basename "$x64_manifest")" == builder-debug-* ]]; then |
860 | | - # continue |
861 | | - # fi |
862 | | - |
863 | | - # arm64_manifest="${x64_manifest/-x64.yml/-arm64.yml}" |
864 | | - # output_manifest="${x64_manifest/-win-x64.yml/.yml}" |
865 | | - # if [[ ! -f "$arm64_manifest" ]]; then |
866 | | - # echo "Missing matching arm64 Windows manifest for $x64_manifest" >&2 |
867 | | - # exit 1 |
868 | | - # fi |
869 | | - |
870 | | - # found_windows_manifest=true |
871 | | - # node scripts/merge-update-manifests.ts --platform win \ |
872 | | - # "$arm64_manifest" \ |
873 | | - # "$x64_manifest" \ |
874 | | - # "$output_manifest" |
875 | | - # rm -f "$arm64_manifest" "$x64_manifest" |
876 | | - # done |
877 | | - |
878 | | - # if [[ "$found_windows_manifest" != true ]]; then |
879 | | - # echo "No Windows updater manifests found to merge." >&2 |
880 | | - # exit 1 |
881 | | - # fi |
882 | | - |
883 | 880 | - name: Publish release |
884 | 881 | if: needs.preflight.outputs.previous_tag != '' |
885 | 882 | uses: softprops/action-gh-release@v3 |
|
0 commit comments