File tree 2 files changed +48
-33
lines changed
2 files changed +48
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main, next ]
6
+ pull_request :
7
+ branches : [ main, next ]
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 20.11.1'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Run unit tests
25
+ run : npm run test:unit
26
+
27
+ release :
28
+ # This job will only run on pushes to main or next, and after the test job completes successfully.
29
+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
30
+ runs-on : ubuntu-latest
31
+ needs : test
32
+ steps :
33
+ - name : Checkout repository
34
+ uses : actions/checkout@v3
35
+
36
+ - name : Set up Node.js
37
+ uses : actions/setup-node@v3
38
+ with :
39
+ node-version : ' 20.11.1'
40
+
41
+ - name : Install dependencies
42
+ run : npm install
43
+
44
+ - name : Build project
45
+ run : npm run build
46
+
47
+ - name : Semantic release
48
+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments