Skip to content

Commit ba2f6ce

Browse files
committed
chore: cache node_modules
1 parent 9a5b97f commit ba2f6ce

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
- name: Install Bun
2424
uses: oven-sh/setup-bun@v1
2525

26+
- name: Use cached node_modules
27+
uses: actions/cache@v4
28+
with:
29+
path: node_modules
30+
key: node-modules-${{ hashFiles('**/bun.lockb') }}
31+
restore-keys: |
32+
node-modules-
33+
34+
- name: Install Dependencies
35+
run: bun install
36+
2637
- name: Lint
2738
run: bun run lint
2839

@@ -35,6 +46,14 @@ jobs:
3546
- name: Install Bun
3647
uses: oven-sh/setup-bun@v1
3748

49+
- name: Use cached node_modules
50+
uses: actions/cache@v4
51+
with:
52+
path: node_modules
53+
key: node-modules-${{ hashFiles('**/bun.lockb') }}
54+
restore-keys: |
55+
node-modules-
56+
3857
- name: Install Dependencies
3958
run: bun install
4059

@@ -50,6 +69,14 @@ jobs:
5069
- name: Install Bun
5170
uses: oven-sh/setup-bun@v1
5271

72+
- name: Use cached node_modules
73+
uses: actions/cache@v4
74+
with:
75+
path: node_modules
76+
key: node-modules-${{ hashFiles('**/bun.lockb') }}
77+
restore-keys: |
78+
node-modules-
79+
5380
- name: Install Dependencies
5481
run: bun install
5582

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ jobs:
2020
with:
2121
registry-url: 'https://registry.npmjs.org'
2222

23-
- name: Install bun
23+
- name: Install Bun
2424
uses: oven-sh/setup-bun@v1
2525

26-
- name: Install dependencies
26+
- name: Use cached node_modules
27+
uses: actions/cache@v4
28+
with:
29+
path: node_modules
30+
key: node-modules-${{ hashFiles('**/bun.lockb') }}
31+
restore-keys: |
32+
node-modules-
33+
34+
- name: Install Dependencies
2735
run: bun install
2836

2937
- name: Build the release

.vscode/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ deps
1313
destructurable
1414
entrypoints
1515
heroicons
16+
lockb
1617
openweb
1718
outdir
1819
pausable

0 commit comments

Comments
 (0)