-
Notifications
You must be signed in to change notification settings - Fork 5.2k
38 lines (29 loc) · 818 Bytes
/
node.js.yml
File metadata and controls
38 lines (29 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Node
on:
pull_request:
push:
branches-ignore: "dependabot/**"
permissions:
contents: read
env:
NODE_VERSION: 22.x
jobs:
build-and-test:
runs-on: ubuntu-latest
name: Build & lint
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Install npm dependencies
run: npm ci
- name: Build
run: npm run build
# Lint must happen after build as we lint generated files.
- name: Lint
run: npm run lint