File tree Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Expand file tree Collapse file tree 1 file changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -24,42 +24,35 @@ concurrency:
2424jobs :
2525 build :
2626 runs-on : ubuntu-latest
27+ strategy :
28+ matrix :
29+ node-version : [22.x]
2730 steps :
28- - name : Checkout
29- uses : actions/checkout@v4
30-
31- - uses : pnpm/action-setup@v4
32- name : Install pnpm
31+ - uses : actions/checkout@v4
3332 with :
34- version : 10
35- run_install : false
36-
37- - name : Install Node.js
33+ clean : false
34+ - name : Use Node.js ${{ matrix.node-version }}
3835 uses : actions/setup-node@v4
3936 with :
40- node-version : 22
41- cache : " pnpm"
42-
43- - name : Install dependencies
44- run : pnpm install
45-
37+ node-version : ${{ matrix.node-version }}
38+ cache : " npm"
39+ - run : npm ci
4640 - name : Setup Pages
4741 id : setup_pages
4842 uses : actions/configure-pages@v5
49-
5043 - name : Restore cache
5144 uses : actions/cache@v4
5245 with :
5346 path : |
5447 .next/cache
5548 # Generate a new cache whenever packages or source files change.
56- key : ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm -lock.yaml ') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
49+ key : ${{ runner.os }}-nextjs-${{ hashFiles('**/package -lock.json ') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
5750 # If source files changed but packages didn't, rebuild from a prior cache.
5851 restore-keys : |
59- ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm -lock.yaml ') }}-
52+ ${{ runner.os }}-nextjs-${{ hashFiles('**/package -lock.json ') }}-
6053
6154 - name : Build with Next.js
62- run : pnpm run build
55+ run : npm run build --if-present
6356 env :
6457 PAGES_BASE_PATH : ${{ steps.setup_pages.outputs.base_path }}
6558
You can’t perform that action at this time.
0 commit comments