Skip to content

Commit d0b2664

Browse files
committed
feat: combined release and commitlint wf into one
1 parent e896a6e commit d0b2664

2 files changed

Lines changed: 20 additions & 26 deletions

File tree

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: commitlint
1+
name: ci
22

33
on:
44
workflow_dispatch:
@@ -31,4 +31,23 @@ jobs:
3131
else
3232
commitlint -V --from HEAD~1
3333
fi
34+
35+
release:
36+
if: github.ref == 'refs/heads/main'
37+
needs: commitlint
38+
runs-on: ubuntu-22.04
39+
permissions:
40+
contents: write # for creating the gh release
41+
issues: write # for commenting on related issues
42+
pull-requests: write # for commenting on related pull-requests
43+
steps:
44+
- uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 0 # semantic release needs all the history
47+
- uses: actions/setup-node@v2
48+
- run: sudo npm install --global conventional-changelog-conventionalcommits@5 semantic-release@19
49+
- name: Release
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
run: semantic-release
3453

.github/workflows/release.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)