Skip to content

feat: prettier-action init #45

feat: prettier-action init

feat: prettier-action init #45

Workflow file for this run

name: Format
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref || github.ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Prettier Action
uses: creyD/[email protected]
with:
prettier_options: '--config ./.prettierrc --ignore-path .gitignore -w "packages/**/*.{js,ts,json,css,tsx,jsx,md}" "playgrounds/**/*.{js,ts,json,css,tsx,jsx,md}"'
commit_message: "style: auto-format with action"