@@ -5,46 +5,70 @@ name: Master Build and Package
5
5
6
6
on :
7
7
push :
8
- branches : [ master, main ]
8
+ branches : [master, main]
9
9
10
10
jobs :
11
- test1 :
12
- runs-on : ubuntu-latest
11
+ # test1:
12
+ # runs-on: ubuntu-latest
13
13
14
- strategy :
15
- matrix :
16
- node-version : [12.x, 13.x]
14
+ # strategy:
15
+ # matrix:
16
+ # node-version: [12.x, 13.x]
17
+
18
+ # steps:
19
+ # - uses: actions/checkout@v2
20
+ # - name: Use Node.js ${{ matrix.node-version }}
21
+ # uses: actions/setup-node@v1
22
+ # with:
23
+ # node-version: ${{ matrix.node-version }}
24
+ # registry-url: https://registry.npmjs.org/
25
+ # - run: npm ci
26
+ # - run: npm test
27
+
28
+ # test2:
29
+ # needs: [test1]
30
+ # runs-on: ubuntu-latest
31
+
32
+ # strategy:
33
+ # matrix:
34
+ # node-version: [15.x, 16.x]
35
+
36
+ # steps:
37
+ # - uses: actions/checkout@v2
38
+ # - name: Use Node.js ${{ matrix.node-version }}
39
+ # uses: actions/setup-node@v1
40
+ # with:
41
+ # node-version: ${{ matrix.node-version }}
42
+ # registry-url: https://registry.npmjs.org/
43
+ # - run: npm ci
44
+ # - run: npm test
45
+
46
+ build_test_publish :
47
+ # needs: [test2]
17
48
18
- steps :
19
- - uses : actions/checkout@v2
20
- - name : Use Node.js ${{ matrix.node-version }}
21
- uses : actions/setup-node@v1
22
- with :
23
- node-version : ${{ matrix.node-version }}
24
- registry-url : https://registry.npmjs.org/
25
- - run : npm ci
26
- - run : npm test
27
-
28
- test2 :
29
- needs : [test1]
30
49
runs-on : ubuntu-latest
31
50
32
51
strategy :
33
52
matrix :
34
- node-version : [15.x, 16.x]
53
+ node-version : [14.x] # 14 is LTS
35
54
36
55
steps :
37
- - uses : actions/checkout@v2
38
- - name : Use Node.js ${{ matrix.node-version }}
39
- uses : actions/setup-node@v1
40
- with :
41
- node-version : ${{ matrix.node-version }}
42
- registry-url : https://registry.npmjs.org/
43
- - run : npm ci
44
- - run : npm test
45
-
46
- build_publish :
47
- needs : [test1, test2]
56
+ - uses : actions/checkout@v2
57
+ - name : Use Node.js ${{ matrix.node-version }}
58
+ uses : actions/setup-node@v1
59
+ with :
60
+ node-version : ${{ matrix.node-version }}
61
+ registry-url : https://registry.npmjs.org/
62
+ - run : npm ci
63
+ - run : npm test
64
+ - run : npm run build
65
+ - run : npm publish
66
+ env :
67
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
68
+ # continue-on-error: true
69
+
70
+ verify_new_package :
71
+ needs : [build_test_publish]
48
72
49
73
runs-on : ubuntu-latest
50
74
@@ -53,18 +77,14 @@ jobs:
53
77
node-version : [14.x] # 14 is LTS
54
78
55
79
steps :
56
- - uses : actions/checkout@v2
57
- - name : Use Node.js ${{ matrix.node-version }}
58
- uses : actions/setup-node@v1
59
- with :
60
- node-version : ${{ matrix.node-version }}
61
- registry-url : https://registry.npmjs.org/
62
- - run : npm ci
63
- - run : npm test
64
- - run : npm run build
65
- - run : npm publish
66
- env :
67
- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
68
- # continue-on-error: true
69
-
70
-
80
+ - uses : actions/checkout@v2
81
+ with :
82
+ repository : synle/restapi-typescript-decorators-back-end-example
83
+ - name : Use Node.js ${{ matrix.node-version }}
84
+ uses : actions/setup-node@v1
85
+ with :
86
+ node-version : ${{ matrix.node-version }}
87
+ registry-url : https://registry.npmjs.org/
88
+ - run : rm package-lock.json
89
+ - run : npm install
90
+ - run : npm test
0 commit comments