File tree 2 files changed +37
-34
lines changed 2 files changed +37
-34
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' v** '
6
+ - ' v*'
7
7
8
8
jobs :
9
9
release :
@@ -13,11 +13,11 @@ jobs:
13
13
with :
14
14
fetch-depth : 0
15
15
16
- - uses : actions/setup-node@v3
16
+ - name : Set node
17
+ uses : actions/setup-node@v3
17
18
with :
18
- node-version : ' 16'
19
- registry-url : https://registry.npmjs.org/
19
+ node-version : 16
20
20
21
- - run : npx conventional-github-releaser -p angular
21
+ - run : npx changelogithub
22
22
env :
23
- CONVENTIONAL_GITHUB_RELEASER_TOKEN : ${{secrets.GITHUB_TOKEN}}
23
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 7
7
branches : [main]
8
8
9
9
jobs :
10
- test :
10
+ lint :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set node
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16.x
18
+
19
+ - name : Setup
20
+ run : npm i -g @antfu/ni
21
+
22
+ - name : Install
23
+ run : nci
24
+
25
+ - name : Lint
26
+ run : nr lint
27
+
28
+ unit_test :
29
+ runs-on : ${{ matrix.os }}
30
+
11
31
strategy :
12
32
matrix :
13
33
os : [ubuntu-latest, windows-latest]
14
- node-version : [14.x , 16.x]
34
+ node : [14.19.0 , 16.x, 18 ]
15
35
fail-fast : false
16
36
17
- runs-on : ${{ matrix.os }}
18
-
19
37
steps :
20
38
- uses : actions/checkout@v3
21
-
22
- - uses : actions/setup-node@v3
39
+ - name : Set node ${{ matrix.node }}
40
+ uses : actions/setup-node@v3
23
41
with :
24
- node-version : ${{ matrix.node-version }}
42
+ node-version : ${{ matrix.node }}
25
43
26
- - name : Cache ~/.pnpm-store
27
- uses : actions/cache@v3
28
- env :
29
- cache-name : cache-pnpm-store
30
- with :
31
- path : ~/.pnpm-store
32
- key : ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
33
- restore-keys : |
34
- ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-
35
- ${{ runner.os }}-${{ matrix.node-version }}-test-
36
- ${{ runner.os }}-
37
-
38
- - name : Install pnpm
39
- run : npm i -g pnpm
44
+ - name : Setup
45
+ run : npm i -g @antfu/ni
40
46
41
- - name : Install deps
42
- run : pnpm i --frozen-lockfile
43
-
44
- - name : Lint
45
- run : pnpm lint
47
+ - name : Install
48
+ run : nci
46
49
47
50
- name : Build
48
- run : pnpm build
51
+ run : nr build
49
52
50
53
# - name: Test
51
- # run: pnpm test
54
+ # run: nr test
You can’t perform that action at this time.
0 commit comments