File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- release :
8- types :
9- - created
107 pull_request :
118
129jobs :
10+ commitlint :
11+ runs-on : ubuntu-latest
12+
13+ name : " Lint commit message"
14+ steps :
15+ - uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 0
18+ - uses : wagoid/commitlint-github-action@v3
19+
1320 verify :
1421 runs-on : ubuntu-latest
1522
3239 CI : true
3340
3441 publish :
35- if : github.event_name == 'release' && github.event.action == 'created'
36- needs : verify
42+ # publish only when merged in master on original repo, not on PR
43+ if : github.repository == 'DamianOsipiuk/vue-query' && github.ref == 'refs/heads/main'
44+ needs : [verify, commitlint]
3745 runs-on : ubuntu-latest
3846
3947 name : " Publish to NPM"
4452 node-version : 14
4553 registry-url : https://registry.npmjs.org/
4654 - run : npm ci
47- - run : npm publish
55+ - run : npx semantic-release@17 --branches main
4856 env :
4957 NODE_AUTH_TOKEN : ${{secrets.NPM_AUTOMATION_TOKEN}}
58+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments