Skip to content

Update and rename node.js.yml to prettier.yml #1

Update and rename node.js.yml to prettier.yml

Update and rename node.js.yml to prettier.yml #1

Workflow file for this run

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 }}