File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and publish
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Set up Node.js
19
+ uses : actions/setup-node@v2
20
+ with :
21
+ node-version : ' 20'
22
+
23
+ - name : Install dependencies
24
+ run : npm install
25
+
26
+ - name : Run lint
27
+ run : npm run lint
28
+
29
+ - name : Run tests
30
+ run : npm run coverage
31
+
32
+ - name : Build project
33
+ run : npm run build
34
+
35
+ # release:
36
+ # needs: build
37
+ # runs-on: ubuntu-latest
38
+ # steps:
39
+ # - name: Checkout code
40
+ # uses: actions/checkout@v2
41
+
42
+ # - name: Set up Node.js
43
+ # uses: actions/setup-node@v2
44
+ # with:
45
+ # node-version: '20'
46
+
47
+ # - name: Install dependencies
48
+ # run: npm install
49
+
50
+ # - name: Semantic Release
51
+ # env:
52
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+ # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54
+ # run: npx semantic-release
You can’t perform that action at this time.
0 commit comments