Commit and push #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format Check | |
on: | |
push: | |
branches: | |
- main | |
- format_ca | |
pull_request: | |
branches: | |
- main | |
- format_ca | |
jobs: | |
prettier-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js and pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Format on react-todo | |
run: cd packages/react-todo && pnpm install && pnpm run prettier:format | |
- name: Format on svelte-todo | |
run: cd packages/svelte-todo && pnpm install && pnpm run prettier:format | |
- name: Format on vanilla-todo | |
run: cd packages/vanilla-todo && pnpm install && pnpm run prettier:format | |
- name: Format on vue-todo | |
run: cd packages/vue-todo && pnpm install && pnpm run prettier:format | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Auto-format code with Prettier" | |
git push |