We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e896a6e commit d0b2664Copy full SHA for d0b2664
2 files changed
.github/workflows/commitlint.yaml .github/workflows/ci.yaml.github/workflows/commitlint.yaml renamed to .github/workflows/ci.yaml
@@ -1,4 +1,4 @@
1
-name: commitlint
+name: ci
2
3
on:
4
workflow_dispatch:
@@ -31,4 +31,23 @@ jobs:
31
else
32
commitlint -V --from HEAD~1
33
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
53
.github/workflows/release.yaml
0 commit comments