File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,19 +28,24 @@ jobs:
2828 with :
2929 node-version : ${{ matrix.node }}
3030
31- - name : Cache node_modules
31+ - name : Install Bun
32+ uses : oven-sh/setup-bun@v1
33+ with :
34+ bun-version : latest
35+
36+ - name : Cache bun dependencies
3237 uses : actions/cache@v4
3338 with :
34- path : ~/.npm ${{ github.workspace }}/.next /cache
35- key : ${{ runner.os }}-nextjs -${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s' , '**.[jt]sx ') }}
39+ path : ~/.bun/install /cache
40+ key : ${{ runner.os }}-bun -${{ hashFiles('**/bun.lockb' , '**/package.json ') }}
3641 restore-keys : |
37- ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }} -
42+ ${{ runner.os }}-bun -
3843
3944 - name : Install dependencies
40- run : npm ci
45+ run : bun install --frozen-lockfile
4146
4247 - name : Build
43- run : npm run build
48+ run : bun run build
4449
4550 - name : Deploy
4651 uses : peaceiris/actions-gh-pages@v3
5055 cname : edt.nz
5156
5257 # - name: Run lint
53- # run: npm run lint
58+ # run: bun run lint
5459
5560 # - name: Run tests
56- # run: npm run test
61+ # run: bun run test
You can’t perform that action at this time.
0 commit comments