Skip to content

Commit

Permalink
add prettier CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperneutrino committed Jul 16, 2024
1 parent cf920ec commit a373dc3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/format-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Format Code
on:
pull_request:
push:
branches:
- main
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Prettier Action
uses: creyD/[email protected]
with:
commit_message: "formatted code"
clean_node_folder: true
prettier_options: "--write **/*.*"

0 comments on commit a373dc3

Please sign in to comment.