2022-09-19 00:58:24 +00:00
name : Synchronize Dependencies with syncpack
2022-08-24 15:15:22 +00:00
on :
# Run whenever a pull request is updated
pull_request :
branches :
- trunk
paths :
- '**/package.json'
jobs :
syncpack :
runs-on : ubuntu-latest
name : syncpack
steps :
- name : 'Checkout'
uses : actions/checkout@v3
- name : 'Setup node'
uses : actions/setup-node@v3
with :
node-version : 16
- name : 'Install Syncpack'
run : npm install -g syncpack@^8.2.4
- name : 'List Mismatches'
run : syncpack list-mismatches
- name : 'Explain Remedy'
if : failure()
run : |
2022-09-01 21:08:18 +00:00
echo "Dependency version mismatch detected. This can usually be fixed automatically by updating the pinned version in \`.syncpackrc\` and then running: \`pnpm run sync-dependencies\`"
2022-08-24 15:15:22 +00:00
exit 1