Skip to content

Merge pull request #12 from kervy-cantos/main #11

Merge pull request #12 from kervy-cantos/main

Merge pull request #12 from kervy-cantos/main #11

Workflow file for this run

name: Format
on:
push:
branches:
- main
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