Skip to content

Commit

Permalink
chore: cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 22, 2024
1 parent 9a5b97f commit ba2f6ce
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install

- name: Lint
run: bun run lint

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

- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install

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

- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'

- name: Install bun
- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
- name: Use cached node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install

- name: Build the release
Expand Down
1 change: 1 addition & 0 deletions .vscode/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ deps
destructurable
entrypoints
heroicons
lockb
openweb
outdir
pausable
Expand Down

0 comments on commit ba2f6ce

Please sign in to comment.