Skip to content

Commit 6b46a63

Browse files
committed
ci(deps): add syncpack format to lockfile workflow
Uses syncpack format to keep package.json files properly sorted without using fix-mismatches which was reverting Dependabot updates.
1 parent b148f9c commit 6b46a63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/dependabot-lockfile.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
node-version: 20
4040
cache: pnpm
4141

42+
- name: Format package.json files with syncpack
43+
run: pnpm syncpack format
44+
4245
- name: Regenerate lockfile
4346
run: pnpm install --no-frozen-lockfile
4447

@@ -56,6 +59,6 @@ jobs:
5659
run: |
5760
git config user.name "dependabot[bot]"
5861
git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
59-
git add pnpm-lock.yaml
60-
git commit -m "chore(deps): update lockfile"
62+
git add -A
63+
git commit -m "chore(deps): format package.json and update lockfile"
6164
git push origin "$PR_HEAD_REF"

0 commit comments

Comments
 (0)