Skip to content

fix: updating conflicting versions #26

fix: updating conflicting versions

fix: updating conflicting versions #26

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
jobs:
check_commits:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
environment: check_commits
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
with:
node-version: ${{ matrix.node-version }}
ref: ${{ github.head_ref }}
- name: Install dependencies
run: npm install
# - name: Run tests
# run: npm run test
- name: Lint commits
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
git fetch origin ${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
git log --pretty=format:'%s' --no-merges origin/${{ github.base_ref }}..HEAD | grep -E '^(fix|feat|docs|style|refactor|test|chore|ci):' || (echo 'Invalid commit prefix' && exit 1)
else
npx commitlint --from ${{ github.event.push.base.sha }} --to ${{ github.event.push.head.sha }} --verbose
fi