Skip to content

Commit

Permalink
refactor: add script and add job
Browse files Browse the repository at this point in the history
  • Loading branch information
Leeyoungone committed Dec 29, 2021
1 parent 5b6786c commit 8263784
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,15 @@ jobs:

- name: Print Disk Usage Reports
run: df ; echo "" ; docker system df

check-package-json:
name: check-package-json
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2.3.4

- name: Check sorted package json
run: yarn run sort-json-check

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
]
},
"scripts": {
"sort-json": "npx sort-package-json 'packages/*/package.json' 'package.json' 'examples/cactus-*/package.json' 'extensions/*/package.json' && yarn run sort-json-check",
"sort-json-check": "npx sort-package-json 'packages/*/package.json' 'package.json' 'examples/cactus-*/package.json' 'extensions/*/package.json' --check",
"run-ci": "./tools/ci.sh",
"reset:node-modules": "del-cli '**/node_modules'",
"reset:git": "git clean -f -X",
Expand Down

0 comments on commit 8263784

Please sign in to comment.