Skip to content

Commit

Permalink
Use .nvmrc version of Node.js instead of hard-coded version
Browse files Browse the repository at this point in the history
  • Loading branch information
ty2k committed May 28, 2024
1 parent 9a23edb commit 60cda50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test_react_component_library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
id: nvm

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit 60cda50

Please sign in to comment.