File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ permissions:
1414 contents : read
1515
1616jobs :
17- LintAndTest :
17+ code-review :
1818 runs-on : ubuntu-latest
1919 steps :
2020 - run : sudo timedatectl set-timezone Asia/Shanghai
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
1010 pull-requests : write
1111
1212jobs :
13- ReleasePR_or_ReleasePublish :
13+ release :
1414 runs-on : ubuntu-latest
1515 steps :
1616 - run : sudo timedatectl set-timezone Asia/Shanghai
@@ -21,22 +21,24 @@ jobs:
2121 token : ${{ secrets.GITHUB_TOKEN }}
2222 release-type : node
2323 bump-minor-pre-major : true
24+
25+ publish :
26+ needs : release
27+ if : needs.release.outputs.release_created
28+ steps :
2429 - uses : actions/checkout@v3
25- if : steps.release.outputs.release_created
2630 - uses : actions/setup-node@v3
27- if : steps.release.outputs.release_created
2831 with :
2932 node-version : 18
3033 cache : npm
31- registry-url : https://registry.npmjs.org
32- - run : npm ci && npm run test
33- if : steps.release.outputs.release_created
34+ - run : npm ci
35+ - run : npm run test
3436 - uses : codacy/codacy-coverage-reporter-action@v1
3537 if : steps.release.outputs.release_created
3638 with :
3739 api-token : ${{ secrets.CODACY_API_TOKEN }}
3840 coverage-reports : coverage/lcov.info
39- - run : npm run build && npm publish --registry=https://registry.npmjs.org
40- if : steps.release.outputs.release_created
41+ - run : npm run build
42+ - run : npm publish --registry=https://registry.npmjs.org
4143 env :
4244 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments