File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ name: Publish cli
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - v[0-9]*.[0-9]*.[0-9]*
5
+ branches :
6
+ - master
7
7
8
8
9
9
jobs :
10
10
bundle :
11
+ needs : [ check-version-cli ]
11
12
runs-on : ubuntu-latest
12
13
steps :
13
14
- uses : actions/checkout@v2
@@ -29,24 +30,26 @@ jobs:
29
30
path : bundles
30
31
retention-days : 1
31
32
unit-tests :
33
+ needs : [ check-version-cli ]
32
34
runs-on : ubuntu-latest
33
35
steps :
34
36
- uses : actions/checkout@v1
35
37
- run : npm ci
36
38
- run : npm test
37
39
e2e-tests :
38
- needs : [bundle]
40
+ needs : [ bundle ]
39
41
runs-on : ubuntu-latest
40
42
steps :
41
43
- uses : actions/checkout@v1
42
44
- run : npm ci
43
45
- name : Download bundled artifact
44
46
uses : actions/download-artifact@v2
45
47
with :
46
- name : bundles
47
- path : bundles-cli
48
+ name : bundles-cli
49
+ path : bundles
48
50
- run : npm run e2e
49
51
bundle-cli :
52
+ needs : [ check-version-cli ]
50
53
runs-on : ubuntu-latest
51
54
steps :
52
55
- uses : actions/checkout@v2
72
75
check-version-cli :
73
76
name : Check Version
74
77
runs-on : ubuntu-latest
75
- needs : [bundle-cli, unit-tests, e2e-tests]
76
78
outputs :
77
79
changed : ${{ steps.check.outputs.changed }}
78
80
steps :
88
90
file-url : https://unpkg.com/redoc-cli/package.json
89
91
static-checking : localIsNew
90
92
publish-cli :
91
- needs : [ check-version- cli ]
93
+ needs : [bundle- cli, unit-tests, e2e-tests ]
92
94
if : needs.check-version-cli.outputs.changed == 'true'
93
95
runs-on : ubuntu-latest
94
96
steps :
You can’t perform that action at this time.
0 commit comments