Skip to content

feat(ci): adds more CI validations, introduces semantic release (#74) #37

feat(ci): adds more CI validations, introduces semantic release (#74)

feat(ci): adds more CI validations, introduces semantic release (#74) #37

Workflow file for this run

name: Commit Lint
on:
- push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
jobs:
duplicate-check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'never'
skip_after_successful_duplicate: 'true'
commit-lint:
if: needs.duplicate-check.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: main
- name: Fetch other branches for commitlint
run: git fetch --prune --unshallow
# - name: Validate PR commits with commitlint
# if: github.event_name == 'pull_request'
# run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'push'
run: npx commitlint --from ${{ github.event.push.head.sha }}~${{ github.event.push.commits }} --to ${{ github.event.push.head.sha }} --verbose