@@ -31,39 +31,45 @@ jobs:
31
31
32
32
steps :
33
33
- name : Checkout
34
- uses : actions/checkout@v3
34
+ uses : actions/checkout@v4
35
35
36
36
- name : Install Node.js
37
- uses : actions/setup-node@v3
37
+ uses : actions/setup-node@v4
38
38
with :
39
39
node-version : 20
40
40
41
- - uses : pnpm/action-setup@v2
41
+ - uses : pnpm/action-setup@v4
42
42
name : Install pnpm
43
43
id : pnpm-install
44
44
with :
45
45
version : 9
46
46
run_install : false
47
-
48
- - name : Get pnpm store directory
49
- id : pnpm-cache
50
- shell : bash
51
- run : |
52
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
53
- - uses : actions/cache@v3
47
+ - name : Setup Pages
48
+ uses : actions/configure-pages@v5
49
+ with :
50
+ # Automatically inject basePath in your Next.js configuration file and disable
51
+ # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
52
+ #
53
+ # You may remove this line if you want to manage the configuration yourself.
54
+ static_site_generator : next
55
+ - uses : actions/cache@v4
54
56
name : Setup pnpm cache
55
57
with :
56
- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
57
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58
+ path : |
59
+ .next/cache
60
+ # Generate a new cache whenever packages or source files change.
61
+ key : ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
62
+ # If source files changed but packages didn't, rebuild from a prior cache.
58
63
restore-keys : |
59
- ${{ runner.os }}-pnpm-store-
64
+ ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-
65
+ # with:
66
+ # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
67
+ # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
68
+ # restore-keys: |
69
+ # ${{ runner.os }}-pnpm-store-
60
70
- name : Install dependencies
61
71
run : pnpm install
62
72
63
- - name : Setup Pages
64
- uses : actions/configure-pages@v3
65
- with :
66
- static_site_generator : next
67
73
- name : Build with Next.js
68
74
run : pnpm next build
69
75
- name : Static HTML export with Next.js
83
89
steps :
84
90
- name : Deploy to GitHub Pages
85
91
id : deployment
86
- uses : actions/deploy-pages@v3
92
+ uses : actions/deploy-pages@v4
0 commit comments