Skip to content

Commit

Permalink
Use .nvmrc to ensure the correct node version is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
neilbmclaughlin committed Feb 3, 2025
1 parent 335b51f commit 8b231b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV

- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: ${{ env.NODE_VERSION }}

- name: Install node dependencies
run: npm ci --engine-strict
Expand Down

0 comments on commit 8b231b2

Please sign in to comment.