Skip to content

Commit 4066cb7

Browse files
committed
chore(ci): update format-lint workflow to use .nvmrc for Node.js version
1 parent ab41c8a commit 4066cb7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@ name: Format and Lint
22

33
on:
44
pull_request:
5-
push:
6-
branches: ['**']
5+
push: # trigger on pushes to all branches
6+
branches:
7+
- '**'
78

89
jobs:
910
format-lint:
1011
runs-on: ubuntu-24.04
11-
permissions:
12-
contents: read
1312
steps:
1413
- name: Checkout
1514
uses: actions/checkout@v4
1615

17-
- name: Use Node
16+
- name: Use Node (from .nvmrc)
1817
uses: actions/setup-node@v4
1918
with:
20-
node-version: 20
19+
node-version-file: .nvmrc
2120
cache: npm
2221

2322
- name: Install

0 commit comments

Comments
 (0)