Skip to content

Commit 1fa7e3e

Browse files
committed
fix: add nodejs cache
1 parent dcda683 commit 1fa7e3e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,21 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
31+
- name: NodeJS Cache
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.OS }}-npm-cache-
38+
3039
- name: Install Deps
3140
run: npm install
3241

3342
- name: Build
3443
run: npm run build --preset=cloudflare_pages
3544

36-
- uses: actions/upload-artifact@v4
37-
with:
38-
name: ${{env.PROJECT_NAME}}-dist
39-
path: ./dist/
40-
4145
- name: Deploy
4246
uses: cloudflare/wrangler-action@v3
4347
# env:

nuxt.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3-
ssr: false,
43
devtools: { enabled: false },
54
modules: [
65
"@nuxtjs/color-mode",

wrangler.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name = "rustlings"
2+
workers_dev = true
23
main = "./.output/server/index.mjs"
34
compatibility_date = "2024-03-14"
45

0 commit comments

Comments
 (0)