Skip to content

Commit 890567c

Browse files
authored
chore: update dependencies, ensure build is reproducible (#647)
- Regenerate package-lock.json (using existing dependencies) - Ensure lock file is used in netlify builds (don't delete lockfile before build!) - Upgrade to Node.js v24 - Upgrade some GitHub actions dependencies
1 parent 69b99cf commit 890567c

File tree

8 files changed

+1409
-252
lines changed

8 files changed

+1409
-252
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Setup Node.js
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v6
2121
with:
22-
node-version: 22
22+
node-version-file: .nvmrc
2323
cache: npm
2424

2525
- name: Install dependencies
2626
run: npm ci --include=optional
2727

2828
- name: Run lint (Prettier + ESLint)
2929
run: npm run lint
30-

.github/workflows/contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout code with Git
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v6
1111

1212
- name: Install and setup Node
13-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v6
1414
with:
15-
node-version: 18
15+
node-version-file: .nvmrc
1616

1717
- name: Capture current date
1818
run: echo "NOW=$(date +'%Y%m%d')" >> $GITHUB_ENV

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
22-
uses: actions/checkout@v3
23-
- uses: actions/setup-node@v4
22+
uses: actions/checkout@v6
23+
- uses: actions/setup-node@v6
2424
with:
25-
node-version: 22
25+
node-version-file: .nvmrc
2626
cache: npm
2727

2828
- name: Install dependencies
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run build
3232

3333
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v3
34+
uses: actions/upload-pages-artifact@v4
3535
with:
3636
path: ./dist
3737

.github/workflows/respec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Rebuild Static
1414
runs-on: macos-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v6
1717
- run: brew install tidy-html5
1818
- run: yarn
1919
- run: ./src/pages/specification/respec.sh

.github/workflows/test-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
name: Test deployment
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
1717
with:
18-
node-version: 22
18+
node-version-file: .nvmrc
1919
cache: npm
2020

2121
- name: Install dependencies

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

netlify.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[build]
2-
command = "rm -rf node_modules package-lock.json && npm install && npm run build"
2+
command = "npm run build"
33
publish = "dist"
4-
5-
[build.environment]
6-
NODE_VERSION = "20"

0 commit comments

Comments
 (0)