File tree 2 files changed +54
-0
lines changed
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 11
11
steps :
12
12
- uses : actions/labeler@v5
13
13
with :
14
+ repo-token : ${{ secrets.LABELER_TOKEN }}
14
15
configuration-path : .github/labeler.yaml
Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, labeled]
6
+ branches : main
7
+
8
+ defaults :
9
+ run :
10
+ working-directory : ./frontend
11
+
12
+ jobs :
13
+ lint :
14
+ if : contains(github.event.pull_request.labels.*.name, 'frontend')
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout repo
18
+
19
+ - name : Setup pnpm
20
+ uses : pnpm/action-setup@v4
21
+ with :
22
+ package_json_file : " ./frontend/package.json"
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version-file : " ./frontend/.nvmrc"
27
+ cache : pnpm
28
+ cache-dependency-path : " ./frontend/pnpm-lock.yaml"
29
+ - name : Install dependencies
30
+ run : pnpm install
31
+ - name : Run lint
32
+ run : pnpm lint
33
+ build :
34
+ if : contains(github.event.pull_request.labels.*.name, 'frontend')
35
+ runs-on : ubuntu-latest
36
+ needs : [lint]
37
+ steps :
38
+ - name : Checkout repo
39
+
40
+ - name : Setup pnpm
41
+ uses : pnpm/action-setup@v4
42
+ with :
43
+ package_json_file : " ./frontend/package.json"
44
+ - name : Setup Node
45
+ uses : actions/setup-node@v4
46
+ with :
47
+ node-version-file : " ./frontend/.nvmrc"
48
+ cache : pnpm
49
+ cache-dependency-path : " ./frontend/pnpm-lock.yaml"
50
+ - name : Install dependencies
51
+ run : pnpm install
52
+ - name : Run build
53
+ run : pnpm build
You can’t perform that action at this time.
0 commit comments