mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Merge pull request #1659 from carlosstenzel/feature/git-action-prettier
Add github action with prettier
This commit is contained in:
1 file changed
+26
@@ -0,0 +1,26 @@
|
||||
name: Check Code with Prettier
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
|
||||
format:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Run prettier
|
||||
run: |-
|
||||
npx prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}'
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v2.3.0
|
||||
with:
|
||||
commit_message: Apply Prettier changes
|
||||
branch: master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user