Skip to content

Commit

Permalink
Refactor some package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Aug 24, 2024
1 parent 1dca995 commit 6134325
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ jobs:
cache: yarn
cache-dependency-path: yarn.lock
- run: yarn
- run: yarn prettier --check 'src/**/*.{js,ts}'
- run: yarn format:check
- if: ${{ !cancelled() }}
run: yarn eslint 'src/**/*.ts'
run: yarn lint
4 changes: 2 additions & 2 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ jobs:
env:
OPENSEARCH_URL: ${{ secrets.OS_URL }}
run: |
yarn ts-node src/load.ts ../aggregate/cards.yaml yu-gi-oh_ocg-tcg
yarn ts-node src/load.ts ../aggregate/rush.yaml yu-gi-oh_rush
yarn load ../aggregate/cards.yaml yu-gi-oh_ocg-tcg
yarn load ../aggregate/rush.yaml yu-gi-oh_rush
deploy-pages:
needs: merge
if: needs.merge.outputs.status > 0 && !cancelled()
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"scripts": {
"load": "ts-node src/load.ts",
"check-for-missing-fake-password": "ts-node src/assignments/check-for-missing.ts",
"check-for-missing-names": "ts-node src/check-for-missing-names.ts"
"check-for-missing-names": "ts-node src/check-for-missing-names.ts",
"format:check": "yarn prettier --check 'src/**/*.{js,ts}'",
"lint": "eslint 'src/**/*.ts'"
},
"engines": {
"node": ">=20",
Expand Down

0 comments on commit 6134325

Please sign in to comment.