Commit Graph

3 Commits

Author SHA1 Message Date
Sped0n
558979285b chore(package.json): add lint:check script to run eslint and prettier in check mode 2023-11-04 21:02:09 +08:00
Sped0n
df9d2d7d65 build: update gh action commit workflow 2023-11-04 20:22:37 +08:00
Sped0n
a87d1ee3cc feat(eslint.yml): add ESLint and Prettier workflow
This commit adds a new workflow file `.github/workflows/eslint.yml` that sets up a workflow for running ESLint and Prettier on push to the `main` branch, pull requests targeting the `main` branch, and manually triggered workflow dispatch events.

The workflow runs on `ubuntu-latest` and consists of the following steps:
1. Checkout the repository
2. Setup pnpm version 8
3. Get the pnpm store directory path
4. Setup pnpm cache using the store path
5. Install dependencies using pnpm
6. Run ESLint and Prettier linting
7. Configure git user email and name for the commit
8. Check if there are any changes using `git diff`
9. If there are changes, add all changes and commit with the message "style: ESLint && Prettier"
10. Push the changes to the repository
2023-11-04 20:08:36 +08:00