From bd5bf461c2fd9f439ca41f9191f647da0a9626be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Mon, 22 Sep 2025 17:55:21 +0900 Subject: [PATCH] ci: create `update-readme` workflow --- .github/workflows/update-readme.yml | 13 +++++++++++++ .gitignore | 3 +++ README.md | 7 +++++++ package.json | 3 ++- 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-readme.yml diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml new file mode 100644 index 00000000..96d09866 --- /dev/null +++ b/.github/workflows/update-readme.yml @@ -0,0 +1,13 @@ +name: update-readme + +on: + schedule: + - cron: "0 8 * * *" # Runs every day at 08:00 AM UTC + + workflow_dispatch: + +jobs: + update-readme: + uses: eslint/workflows/.github/workflows/update-readme.yml@main + secrets: + workflow_push_bot_token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }} diff --git a/.gitignore b/.gitignore index 6dfb8494..a9ea653d 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ node_modules/ .idea .cursor /tmp + +# Automatically generated files by GitHub Actions workflow +tools/update-readme.js diff --git a/README.md b/README.md index 61385acf..4893fa28 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,10 @@ To use an eslintrc-style (legacy) shared config: ```bash npm init @eslint/config@latest -- --eslintrc --config eslint-config-standard ``` + + + + +## Sponsors + + \ No newline at end of file diff --git a/package.json b/package.json index 569c7fab..6d4eeaf3 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "access": "public" }, "scripts": { - "lint": "eslint .", + "lint": "eslint", + "lint:fix": "eslint --fix", "test": "vitest run --coverage", "test:snapshots": "vitest run snapshots", "test:snapshots:update": "vitest -u run snapshots"