Skip to content

Commit d86aa5f

Browse files
committed
fix github script to detect bun.lockb -> bun.lock
1 parent 386fa8d commit d86aa5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nextjs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Detect package manager
3838
id: detect-package-manager
3939
run: |
40-
if [ -f "${{ github.workspace }}/bun.lockb" ]; then
40+
if [ -f "${{ github.workspace }}/bun.lock" ]; then
4141
echo "manager=bun" >> $GITHUB_OUTPUT
4242
echo "command=install" >> $GITHUB_OUTPUT
4343
echo "runner=bun" >> $GITHUB_OUTPUT
@@ -75,10 +75,10 @@ jobs:
7575
path: |
7676
.next/cache
7777
# Generate a new cache whenever packages or source files change.
78-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/bun.lockb') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
78+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/bun.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
7979
# If source files changed but packages didn't, rebuild from a prior cache.
8080
restore-keys: |
81-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/bun.lockb') }}-
81+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/bun.lock') }}-
8282
- name: Install dependencies
8383
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
8484
- name: Build wasm-pack

0 commit comments

Comments
 (0)