Skip to content

Commit 6795328

Browse files
committed
ci: update Node 22 workflow actions
1 parent eea1012 commit 6795328

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/push.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,14 @@ jobs:
1010
matrix:
1111
node-version: [22.x]
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ matrix.node-version }}
18-
- name: Cache node_modules
19-
id: cache-modules
20-
uses: actions/cache@v4
21-
with:
22-
path: node_modules
23-
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
24-
- name: Build
25-
if: steps.cache-modules.outputs.cache-hit != 'true'
26-
run: npm install
18+
cache: npm
19+
- name: Install dependencies
20+
run: npm ci
2721
- name: Lint
2822
run: npm run lint:ci
2923
- name: Test

0 commit comments

Comments
 (0)