Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
ci: save the bun cache from main only
Richie McIlroy554ac390cd37
diff --git a/.github/actions/setup-js/action.yml b/.github/actions/setup-js/action.ymlindex 3577bc295..22cfafb74 100644--- a/.github/actions/setup-js/action.yml+++ b/.github/actions/setup-js/action.yml@@ -13,8 +13,11 @@ runs:with:bun-version: 1.4.0- - name: Cache Bun packages- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830+ # Saved from main only: a cache saved on a PR ref is invisible to every+ # other PR and still counts against the repository cache quota.+ - name: Restore Bun packages+ id: bun-cache+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830with:path: ${{ runner.temp }}/bun-cachekey: ${{ runner.os }}-${{ runner.arch }}-bun-1.4.0-${{ hashFiles('bun.lock') }}@@ -37,6 +40,13 @@ runs:sleep $((attempt * 30))done+ - name: Save Bun packages+ if: ${{ github.ref == 'refs/heads/main' && steps.bun-cache.outputs.cache-hit != 'true' }}+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830+ with:+ path: ${{ runner.temp }}/bun-cache+ key: ${{ steps.bun-cache.outputs.cache-primary-key }}+- name: Verify Bun installationshell: bashrun: bun run check:bun