Skip to content

Commit

Permalink
feat(repo): Ensure lockfile is deduped (#4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Jan 16, 2025
1 parent 85fbb8b commit 8d8c2f3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 87 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ jobs:
turbo-team: ${{ vars.TURBO_TEAM }}
turbo-token: ${{ secrets.TURBO_TOKEN }}

- name: Deduplicate lockfile
run: pnpm dedupe

- name: Check for changed lockfile
run: |
if [ -n "$(git status --porcelain pnpm-lock.yaml)" ]; then
echo "pnpm-lock.yaml is not deduped. Please run 'pnpm dedupe' locally and commit."
git diff pnpm-lock.yaml
exit 1
fi
- name: Require Changeset
if: ${{ !(github.event_name == 'merge_group') }}
run: if [[ "${{ github.event.pull_request.user.login }}" = "clerk-cookie" || "${{ github.event.pull_request.user.login }}" = "renovate[bot]" ]]; then echo 'Skipping' && exit 0; else pnpm changeset status --since=origin/main; fi
Expand Down
Loading

0 comments on commit 8d8c2f3

Please sign in to comment.