ci: add deduped packages check
This commit is contained in:
parent
b946271d87
commit
8f91d282d2
1 changed files with 22 additions and 0 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -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 pnpm@9.0.4
|
||||
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue