Skip to content

Commit

Permalink
ci: use same Prettier version as configured in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tindzk authored and momesana committed Mar 11, 2024
1 parent b8c3836 commit 4baa04f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Initialize project
run: pnpm i --frozen-lockfile
- name: Run commitlint
run: pnpm dlx commitlint --from=$(git rev-list "origin/${GITHUB_BASE_REF}"..HEAD | sed '1!d')~1
run: pnpm exec commitlint --from=$(git rev-list "origin/${GITHUB_BASE_REF}"..HEAD | sed '1!d')~1
- name: Ensure linear git history
run: git merge-base --is-ancestor "origin/${GITHUB_BASE_REF}" HEAD
- name: Check for fixup or WIP commits
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CHANGED_FILES=$(git --no-pager diff --name-only --cached --diff-filter=AM --rela
'*.md' '*.html' '*.yml' '*.yaml' '*.json' '*.js' '*.jsx' '*.ts' '*.tsx' '*.css')

if [ -n "$CHANGED_FILES" ]; then
pnpm dlx prettier --check $CHANGED_FILES
pnpm exec prettier --check $CHANGED_FILES
fi

pnpm lint
Expand Down

0 comments on commit 4baa04f

Please sign in to comment.