Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
# Keep in sync with netlify.toml
node-version: 20.x
node-version: 24.x
- name: Cache node_modules
uses: actions/cache@v4
id: cache
Expand All @@ -32,7 +32,7 @@ jobs:
# we don't use `npm ci` specifically to try to get faster CI flows. So caching
# `node_modules` directly.
path: 'node_modules'
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
key: ${{ runner.os }}-node-24-${{ hashFiles('package*.json') }}
- if: steps.cache.outputs.cache-hit != 'true'
run: npm install

Expand All @@ -43,13 +43,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
- name: Load node_modules from cache
uses: actions/cache@v4
with:
# Use node_modules from previous jobs
path: 'node_modules'
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
key: ${{ runner.os }}-node-24-${{ hashFiles('package*.json') }}
- name: Cache BookReader/
uses: actions/cache@v4
id: build-cache
Expand All @@ -67,13 +67,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
- name: Load node_modules from cache
uses: actions/cache@v4
with:
# Use node_modules from previous jobs
path: 'node_modules'
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
key: ${{ runner.os }}-node-24-${{ hashFiles('package*.json') }}
- run: npm run lint
- run: npm run test
- uses: codecov/codecov-action@v4
Expand All @@ -87,13 +87,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 24.x
- name: Load node_modules from cache
uses: actions/cache@v4
with:
# Use node_modules from previous jobs
path: 'node_modules'
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
key: ${{ runner.os }}-node-24-${{ hashFiles('package*.json') }}
- name: Load BookReader/ from cache
uses: actions/cache@v4
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish --tag next
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build.environment]
# Keep in sync with CI in .github/workflows/node.js.yml
NODE_VERSION = "20"
NODE_VERSION = "24"

[[headers]]
# Define which paths this specific [[headers]] block will cover.
Expand Down