File tree Expand file tree Collapse file tree 5 files changed +12
-104
lines changed
Expand file tree Collapse file tree 5 files changed +12
-104
lines changed Original file line number Diff line number Diff line change 1- name : Data Fetch
1+ name : update-readme
22
33on :
44 schedule :
5- - cron : " 0 8 * * *" # Every day at 1am PDT
5+ - cron : " 0 8 * * *" # Runs every day at 08:00 AM UTC
6+
67 workflow_dispatch :
78
89jobs :
9- build :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Check out repo
13- uses : actions/checkout@v5
14- with :
15- token : ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
16-
17- - name : Set up Node.js
18- uses : actions/setup-node@v5
19-
20- - name : Install npm packages
21- run : npm install
22-
23- - name : Update README with latest sponsor data
24- run : npm run build:readme
25-
26- - name : Setup Git
27- run : |
28- git config user.name "GitHub Actions Bot"
29- git config user.email "<eslint@googlegroups.com>"
30-
31- - name : Save updated files
32- run : |
33- chmod +x ./tools/commit-readme.sh
34- ./tools/commit-readme.sh
10+ update-readme :
11+ uses : eslint/workflows/.github/workflows/update-readme.yml@main
12+ secrets :
13+ workflow_push_bot_token : ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
Original file line number Diff line number Diff line change 6565package-lock.json
6666
6767# Build
68- src /build
68+ src /build
69+
70+ # Automatically generated files by GitHub Actions workflow
71+ tools /update-readme.js
Original file line number Diff line number Diff line change 6262 "build:cts" : " node tools/build-cts.js" ,
6363 "build:rules" : " node tools/build-rules.js" ,
6464 "build" : " npm run build:rules && rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts" ,
65- "build:readme" : " node tools/update-readme.js" ,
6665 "build:update-rules-docs" : " node tools/update-rules-docs.js" ,
6766 "prepare" : " npm run build" ,
6867 "pretest" : " npm run build" ,
6968 "lint" : " eslint" ,
69+ "lint:fix" : " eslint --fix" ,
7070 "fmt" : " prettier --write ." ,
7171 "fmt:check" : " prettier --check ." ,
7272 "test" : " mocha \" tests/**/*.test.js\" " ,
9494 "eslint" : " ^9.36.0" ,
9595 "eslint-config-eslint" : " ^13.0.0" ,
9696 "eslint-plugin-eslint-plugin" : " ^6.3.2" ,
97- "got" : " ^14.4.2" ,
9897 "lint-staged" : " ^15.2.7" ,
9998 "mdast-util-from-markdown" : " ^2.0.2" ,
10099 "mocha" : " ^11.3.0" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments