File tree Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 9
9
npm_token :
10
10
description : NPM token
11
11
required : true
12
+ release_target :
13
+ description : Release target (patch, minor)
14
+ required : false
15
+ default : version-publish
12
16
13
17
runs :
14
18
using : composite
18
22
NODE_AUTH_TOKEN : ${{ inputs.npm_token }}
19
23
GITHUB_TOKEN : ${{ inputs.github_token }}
20
24
shell : bash
21
- run : pnpx nx affected --base=last-release --target=version-publish --parallel=1
25
+ run : pnpx nx affected --base=last-release --target=${{ inputs.release_target }} --parallel=1
22
26
23
27
- name : Tag last-release
24
28
shell : bash
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ - workflow_dispatch
5
+
6
+ jobs :
7
+ test :
8
+ runs-on : ubuntu-latest
9
+
10
+ strategy :
11
+ matrix :
12
+ node_version : [16]
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - name : Setup
17
+ uses : ./.github/actions/setup
18
+ with :
19
+ node_version : ${{ matrix.node_version }}
20
+
21
+ - name : Test
22
+ uses : ./.github/actions/test
23
+ with :
24
+ codecov_token : ${{ secrets.CODECOV_TOKEN }}
25
+
26
+ release :
27
+ runs-on : ubuntu-latest
28
+
29
+ if : github.ref == 'refs/heads/main'
30
+
31
+ needs : [test]
32
+
33
+ steps :
34
+ - uses : actions/checkout@v3
35
+ - name : Setup
36
+ uses : ./.github/actions/setup
37
+
38
+ - name : Release
39
+ uses : ./.github/actions/release
40
+ with :
41
+ github_token : ${{ secrets.GITHUB_TOKEN }}
42
+ npm_token : ${{ secrets.NPM_TOKEN }}
43
+ release_target : ${{ version-publish-minor }}
Original file line number Diff line number Diff line change 80
80
"postTargets" : [" qwik-nx:publish" , " qwik-nx:push-to-github" ]
81
81
}
82
82
},
83
+ "version-publish-minor" : {
84
+ "executor" : " @jscutlery/semver:version" ,
85
+ "options" : {
86
+ "noVerify" : true ,
87
+ "push" : true ,
88
+ "releaseAs" : " minor" ,
89
+ "postTargets" : [" qwik-nx:publish" , " qwik-nx:push-to-github" ]
90
+ }
91
+ },
83
92
"publish" : {
84
93
"executor" : " ngx-deploy-npm:deploy" ,
85
94
"options" : {
You can’t perform that action at this time.
0 commit comments