Skip to content

Commit

Permalink
refactor: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Aug 5, 2024
1 parent 8199ddc commit b098ba2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lockfile-version-v20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b098ba2

Please sign in to comment.