Skip to content

Commit b32330c

Browse files
Merge pull request #25 from CodeCafeCommunity/24-nodever-lint-workflow
Update format-and-lint.yml to use nvmrc
2 parents 88567b6 + ce98e88 commit b32330c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/format-and-lint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ jobs:
1010
lint:
1111
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.repository != github.event.pull_request.head.repo.full_name)
1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [23]
1613
steps:
1714
- name: Check out branch (pull request)
1815
uses: actions/checkout@v4
19-
- name: Use Node.js ${{ matrix.node-version }}
16+
- name: Use Node.js
2017
uses: actions/setup-node@v4
2118
with:
22-
node-version: ${{ matrix.node-version }}
19+
node-version-file: .nvmrc
20+
cache: "npm"
2321
- name: Install packages
2422
run: npm ci
2523
- name: Check Formatting with Prettier

0 commit comments

Comments
 (0)