Skip to content

Commit 977dc99

Browse files
fix: update default Node version to 22 in workflow configurations (#1001)
## Problem Release workflow failed because npm@11 requires Node.js >=20.17.0, but we were using Node.js 18. ## Solution Updated Node.js version from 18 to 22 in: - `.github/workflows/release.yml` - `.github/actions/build/action.yml` Aligns with the same change made in [auth0-spa-js#1498](auth0/auth0-spa-js#1498). Workflow failure - https://github.com/auth0/auth0-react/actions/runs/21427941328
1 parent 76b0d9b commit 977dc99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
node:
66
description: The Node version to use
77
required: false
8-
default: 18
8+
default: 22
99

1010
runs:
1111
using: composite

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
rl-scanner:
1818
uses: ./.github/workflows/rl-secure.yml
1919
with:
20-
node-version: 18
20+
node-version: 22
2121
artifact-name: 'auth0-react.tgz'
2222
secrets:
2323
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
@@ -30,7 +30,7 @@ jobs:
3030
uses: ./.github/workflows/npm-release.yml
3131
needs: rl-scanner
3232
with:
33-
node-version: 18
33+
node-version: 22
3434
require-build: true
3535
secrets:
3636
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)