Skip to content

Commit

Permalink
feat: combined release and commitlint wf into one
Browse files Browse the repository at this point in the history
  • Loading branch information
krsche committed Jul 11, 2022
1 parent e896a6e commit d0b2664
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/commitlint.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: commitlint
name: ci

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,4 +31,23 @@ jobs:
else
commitlint -V --from HEAD~1
fi
release:
if: github.ref == 'refs/heads/main'
needs: commitlint
runs-on: ubuntu-22.04
permissions:
contents: write # for creating the gh release
issues: write # for commenting on related issues
pull-requests: write # for commenting on related pull-requests
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # semantic release needs all the history
- uses: actions/setup-node@v2
- run: sudo npm install --global conventional-changelog-conventionalcommits@5 semantic-release@19
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release

25 changes: 0 additions & 25 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit d0b2664

Please sign in to comment.