Skip to content

Commit

Permalink
ci: add deduped packages check
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jan 16, 2025
1 parent b946271 commit 8f91d28
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,25 @@ jobs:
# if: ${{ github.event.pull_request.base.ref == 'release' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dedupe-check:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/next'
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install pnpm
run: npm install -g [email protected]

- name: Run pnpm dedupe
run: pnpm dedupe

- name: Check for changes
run: |
if ! git diff --exit-code --quiet pnpm-lock.yaml; then
echo "pnpm dedupe introduced changes:"
git diff --color=always pnpm-lock.yaml
exit 1
else
echo "No changes detected after pnpm dedupe in pnpm-lock.yaml"
fi

0 comments on commit 8f91d28

Please sign in to comment.