Skip to content

Commit

Permalink
Change Node.js workflow to use nvmrc Node version (#2543)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaurdan authored Jun 6, 2024
1 parent d872794 commit 667f46a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ jobs:
build:
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Read .nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install JavaScript dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
>=18.12.0
18.12

0 comments on commit 667f46a

Please sign in to comment.