Skip to content

feat: fixing microsdeck dependency #311

feat: fixing microsdeck dependency

feat: fixing microsdeck dependency #311

Workflow file for this run

name: Verify Commit Syntax
on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Print versions
run: |
git --version
node --version
pnpm --version
npx commitlint --version
- name: Install commitlint
run: |
pnpm install conventional-changelog-conventionalcommits
pnpm install commitlint@latest
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --from HEAD~1 --to HEAD --verbose
- 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