Skip to content

Commit

Permalink
Update and rename node.js.yml to prettier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rizzlogy authored Sep 19, 2023
1 parent 13bcaaf commit eb7ff1c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/node.js.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Beutifier Codes

on:
push:
branches: [ main ]

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- run: npm i -g prettier
- run: prettier --write '**/*.{js,json}'
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: automatic tidy up code
branch: ${{ github.head_ref }}

0 comments on commit eb7ff1c

Please sign in to comment.