saleor-apps-redis_apl/.github/workflows/check-deps.yml
Adrian Pilarczyk 8af0f022e3
feat: align monorepo deps automatically (#518)
* build:  add syncpack

* feat:  add syncpack github action

* feat:  update syncpack

* ci: 🔧 update syncpackrc

* ci: 👷 update check-deps to ignore all

* Update check-deps.yml

* Update check-deps.yml

* Update check-deps.yml

* Update check-deps.yml

* Update package.json

* ci: 👷 add continue-on-error

* ci: 💚 move continue-on-error
2023-06-01 09:09:19 +02:00

33 lines
1.2 KiB
YAML

name: Check dependencies versions
on:
# Run whenever a pull request is updated
pull_request:
branches:
- main
jobs:
syncpack:
runs-on: ubuntu-latest
name: Check dependencies
steps:
# Check out the branch so we can read/write its files
- uses: actions/checkout@v3
# Use Node.js as syncpack is written in that
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: JamieMason/syncpack-github-action@0.2.2
continue-on-error: true
with:
package-manager: "pnpm"
bot-username: "Syncpack Bot"
commit-message: "format and sync package.json files"
# The workflow will only list mismatched dependencies, and the assignee has to manually fix them.
# version-mismatches: list mismatches in a comment
version-mismatches: "lint"
# semver-range-mismatches: don't align dependency version format
semver-range-mismatches: "ignore"
# lockfile-mismatches: don't update lockfiles when mismatches detected
lockfile-mismatches: "ignore"
# format-mismatches: don't update package.json when inconsistent formatting detected
format-mismatches: "ignore"