Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/actions/setup-js/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: ${{ runner.temp }}/bun-cache
key: ${{ runner.os }}-${{ runner.arch }}-bun-1.4.0-${{ hashFiles('bun.lock') }}
Expand All @@ -37,6 +40,14 @@ runs:
sleep $((attempt * 30))
done

- name: Save Bun packages
if: ${{ github.ref == 'refs/heads/main' && steps.bun-cache.outputs.cache-hit != 'true' }}
continue-on-error: true
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830
Comment thread
richiemcilroy marked this conversation as resolved.
with:
path: ${{ runner.temp }}/bun-cache
key: ${{ steps.bun-cache.outputs.cache-primary-key }}

- name: Verify Bun installation
shell: bash
run: bun run check:bun
Loading
Loading