Skip to content

Commit 2583312

Browse files
committed
refactor: update lint workflow to use latest actions and improve caching
1 parent 18d5548 commit 2583312

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v2
16+
- name: Checkout code
17+
uses: actions/checkout@v3
1818

19-
- name: Set up Node.js
20-
uses: actions/setup-node@v2
21-
with:
22-
node-version: '16'
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '16'
23+
cache: 'npm'
2324

24-
- name: Install dependencies
25-
run: npm install
25+
- name: Install dependencies
26+
run: npm ci
2627

27-
- name: Run linter
28-
run: npm run lint
28+
- name: Run linter
29+
run: npm run lint

0 commit comments

Comments
 (0)