Skip to content

Commit

Permalink
Add Prettier on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelscruz committed Jul 9, 2024
1 parent 8b612bb commit d7894f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/update-db-and-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- run: npm install
- run: npm run update-db
- run: npm run update-readme
- run: npm run prettier:format
- run: git add .
- run: git commit -m "Auto updating db and README.md" || echo "Nothing to commit"
- run: git push origin HEAD:main
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"description": "The API for the resources listed on Dev Resources.",
"scripts": {
"update-db": "ts-node utils/db/update-db.js",
"update-readme": "ts-node utils/readme/update-readme.js"
"update-readme": "ts-node utils/readme/update-readme.js",
"prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\""
},
"dependencies": {
"@types/node": "^18.11.9",
Expand Down

0 comments on commit d7894f4

Please sign in to comment.