Skip to content

Commit

Permalink
chore: test 2: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
lindenquan committed Dec 2, 2024
1 parent 28d336b commit 92bf88b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/moody-badgers-care.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/silent-beds-marry.md

This file was deleted.

12 changes: 8 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Check for changesets
if git diff --name-only | grep -q '^.changeset/.*\.md$'; then
echo "Detected uncommitted changesets"
if [ -n "$GITHUB_ACTIONS" ]; then
echo "Running on GitHub Actions, skip checking changesets"
else
pnpm changeset status --since=main
echo "Running locally"
if git diff --name-only | grep -q '^.changeset/.*\.md$'; then
echo "Detected uncommitted changesets"
else
pnpm changeset status --since=main
fi
fi


# Check for changed files and filter out certain suffixes
if git diff --cached --name-only | grep -E '\.(ts|tsx|json|html)$' | grep -q .; then
echo "Running checks..."
Expand Down

0 comments on commit 92bf88b

Please sign in to comment.