Skip to content

Commit

Permalink
try including package.json sort into format
Browse files Browse the repository at this point in the history
  • Loading branch information
trueberryless committed Nov 25, 2024
1 parent 31de365 commit 21d24b2
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 857 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
run_install: |
- recursive: false
args: [--frozen-lockfile]
- args: [prettier]
- args: [--global, prettier, sort-package-json]
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Sort package.json
run: find . -name "package.json" -not -path "*/node_modules/*" -exec sort-package-json {} \;
- name: Format with Prettier
run: pnpm prettier --write .
- name: Create Pull Request
Expand All @@ -35,7 +37,7 @@ jobs:
branch: ci-format
delete-branch: true
title: "[ci] format"
body: "This PR was automatically created to format the repository using prettier."
body: "This PR was automatically created to sort package.json files in the repository using sort-package-json and to format the repository using prettier."
labels: 🤖 bot
assignees: trueberryless
draft: false
89 changes: 0 additions & 89 deletions .github/workflows/sort.package.json.yaml

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9"
},
"packageManager": "[email protected]",
"dependencies": {
"prettier": "^3.3.3"
}
"packageManager": "[email protected]"
}
Loading

0 comments on commit 21d24b2

Please sign in to comment.