diff --git a/.github/workflows/lockfile-version-v20.yml b/.github/workflows/lockfile-version-v20.yml index 16fb3c3f6..47faece0a 100644 --- a/.github/workflows/lockfile-version-v20.yml +++ b/.github/workflows/lockfile-version-v20.yml @@ -18,6 +18,10 @@ jobs: run: | if [ -f .nvmrc ]; then NODE_VERSION=$(cat .nvmrc) + if [[ "$NODE_VERSION" != 20* ]]; then + echo "ERROR: Node.js version 20 or above is required. Found version $NODE_VERSION in .nvmrc" + exit 1 + fi echo "node-version=$NODE_VERSION" >> $GITHUB_ENV else echo "No .nvmrc file found, defaulting to Node.js v20"