diff options
| author | seth <[email protected]> | 2023-03-17 09:34:30 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-17 09:34:30 -0400 |
| commit | e73226622083deb3ec5289ea517b9963e1998b77 (patch) | |
| tree | 7de4b8754181a56ca97c23b54facaa8baf21b643 /.github/workflows/format.yaml | |
| parent | b33c5d086dddf4462121ac7cfc60e2ac4e0093e2 (diff) | |
feat(actions): add prettier format action
Diffstat (limited to '.github/workflows/format.yaml')
| -rw-r--r-- | .github/workflows/format.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 0000000..4b96fb3 --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,31 @@ +name: format + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: checkout repository + uses: actions/checkout@v3 + + - name: setup node + uses: actions/setup-node@v3 + + - name: install prettier + run: | + npm install -g prettier + + - name: format + run: prettier --editorconfig -w . + + - name: add and commit + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: "chore: format with prettier" |
