Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(ci): cut duplicate release and dependency work #9121

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromt3code/speed-up-ci-releasesopened View on GitHub

Showing 4 changed files with 93 additions and 12 deletions (loading 1).

x
0 of 4 viewed, 4 left
41 additions and 5 deletions.github/workflows/ci.ymlModified
View file
@@ -39,8 +39,24 @@
uses: voidzero-dev/setup-vp@v1
with:
node-version-file: package.json
- cache: true
- run-install: true
+ cache: false
+ run-install: false
+​
+ # Filtered installs use other keys so they cannot populate this full-workspace cache.
+ - name: Resolve pnpm store path
+ id: pnpm_store
+ run: echo "path=$(vp pm cache dir)" >> "$GITHUB_OUTPUT"
+​
+ - name: Cache full pnpm store
+ uses: actions/cache@v6
+ with:
+ path: ${{ steps.pnpm_store.outputs.path }}
+ key: pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
+ restore-keys: |
+ pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-
+​
+ - name: Install dependencies
+ run: vp install
​
- name: Ensure Electron runtime is installed
run: vp run --filter @t3tools/desktop ensure:electron
@@ -79,8 +95,24 @@
uses: voidzero-dev/setup-vp@v1