This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
fix: i18n merge fails when output dir exists #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
Commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- name: Validate current commit | |
if: github.event_name == 'push' | |
run: pnpm commitlint --from HEAD~1 --to HEAD --verbose | |
- name: Validate PR commits | |
if: github.event_name == 'pull_request' | |
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose |