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 99 npm_token :
1010 description : NPM token
1111 required : true
12+ release_target :
13+ description : Release target (patch, minor)
14+ required : false
15+ default : version-publish
1216
1317runs :
1418 using : composite
1822 NODE_AUTH_TOKEN : ${{ inputs.npm_token }}
1923 GITHUB_TOKEN : ${{ inputs.github_token }}
2024 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
2226
2327 - name : Tag last-release
2428 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 8080 "postTargets" : [" qwik-nx:publish" , " qwik-nx:push-to-github" ]
8181 }
8282 },
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+ },
8392 "publish" : {
8493 "executor" : " ngx-deploy-npm:deploy" ,
8594 "options" : {
You can’t perform that action at this time.
0 commit comments