Skip to content

Commit

Permalink
refactor: ci.yml to use an env var for node version
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 committed Aug 15, 2024
1 parent 92a363e commit 4436abc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ jobs:
tests-and-coverage:
name: Run tests & report coverage
runs-on: ubuntu-latest
env:
NODE_VERSION: 20.9.0

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Cache npm dependencies
Expand Down

0 comments on commit 4436abc

Please sign in to comment.