Skip to content

Commit

Permalink
Fix dependency, add prettier to github actions (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTallJerry authored Jan 27, 2024
1 parent 6107198 commit fe4fd3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ on:
- main

jobs:
prettier:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node and cache packages
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install npm packages
run: npm ci
- name: Run prettier
run: npx prettier . --write
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
jest:
if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Ignore artifacts
coverage
dist
node_modules
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe4fd3b

Please sign in to comment.