You've already forked visualtree
Compare commits
2 Commits
4cdb3dddd8
...
ccf34570e0
| Author | SHA1 | Date | |
|---|---|---|---|
| ccf34570e0 | |||
| 61c9ad4a8b |
25
.github/workflows/prettier.yml
vendored
Normal file
25
.github/workflows/prettier.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Format the code
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Format Files
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "16"
|
||||||
|
- name: Prettier
|
||||||
|
run: npx prettier --write **/*.tsx
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
||||||
|
with:
|
||||||
|
commit_message: "style: format files"
|
||||||
Reference in New Issue
Block a user