Skip to content

Commit

Permalink
Specify node version in nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Feb 8, 2024
1 parent 4811a35 commit 9da7ad4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'yarn'
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: yarn
- name: install dependencies
run: yarn
- name: run lint
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium

0 comments on commit 9da7ad4

Please sign in to comment.