Skip to content

Commit d5f4c6c

Browse files
committed
Hopefully fix GH workflows
1 parent 9e901d0 commit d5f4c6c

4 files changed

Lines changed: 11295 additions & 13666 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ jobs:
55
checks:
66
runs-on: ubuntu-latest
77

8-
strategy:
9-
matrix:
10-
node-version: [24.x]
11-
128
steps:
13-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1410

15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
11+
- name: Use Node.js
12+
uses: actions/setup-node@v4
1713
with:
18-
node-version: ${{ matrix.node-version }}
14+
node-version-file: .tool-versions
15+
cache: npm
1916

2017
- name: Setup Dependencies
2118
run: npm ci

.github/workflows/pages.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +29,22 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Detect package manager
34-
id: detect-package-manager
35-
run: |
36-
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
37-
echo "::set-output name=manager::yarn"
38-
echo "::set-output name=command::install"
39-
echo "::set-output name=runner::yarn"
40-
exit 0
41-
elif [ -f "${{ github.workspace }}/package.json" ]; then
42-
echo "::set-output name=manager::npm"
43-
echo "::set-output name=command::ci"
44-
echo "::set-output name=runner::npx --no-install"
45-
exit 0
46-
else
47-
echo "Unable to determine packager manager"
48-
exit 1
49-
fi
32+
uses: actions/checkout@v4
5033
- name: Setup Node
51-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
5235
with:
53-
node-version: '20'
54-
cache: ${{ steps.detect-package-manager.outputs.manager }}
36+
node-version-file: .tool-versions
37+
cache: npm
5538
- name: Setup Pages
56-
uses: actions/configure-pages@v2
39+
uses: actions/configure-pages@v5
5740
with:
5841
# Automatically inject basePath in your Next.js configuration file and disable
5942
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
6043
#
6144
# You may remove this line if you want to manage the configuration yourself.
6245
static_site_generator: next
6346
- name: Restore cache
64-
uses: actions/cache@v3
47+
uses: actions/cache@v4
6548
with:
6649
path: |
6750
.next/cache
@@ -71,9 +54,9 @@ jobs:
7154
restore-keys: |
7255
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
7356
- name: Install dependencies
74-
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
57+
run: npm ci
7558
- name: Build with Next.js
76-
run: ${{ steps.detect-package-manager.outputs.runner }} next build
59+
run: npm run build
7760
- name: Upload artifact
7861
uses: actions/upload-pages-artifact@v3
7962
with:

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
replace-registry-host=always

0 commit comments

Comments
 (0)