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 5, 2025
1 parent 4872d19 commit 91f1fd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set node version
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 91f1fd7

Please sign in to comment.