File tree Expand file tree Collapse file tree 2 files changed +10
-27
lines changed Expand file tree Collapse file tree 2 files changed +10
-27
lines changed Original file line number Diff line number Diff line change 11name : autofix.ci # needed to securely identify the workflow
22
3- on :
4- pull_request :
5- push :
6- branches : ["main"]
3+ on : { pull_request: {}, push: { branches: ["main"] } }
74
8- permissions :
9- contents : read
5+ permissions : { contents: read }
106
117jobs :
128 autofix :
139 runs-on : ubuntu-latest
1410 steps :
15- - uses : actions/checkout@v4
11+ - uses : actions/checkout@v5
1612 - run : corepack enable
1713 - uses : actions/setup-node@v4
18- with :
19- node-version : 22
20- cache : " pnpm"
14+ with : { node-version: lts/*, cache: "pnpm" }
2115 - run : pnpm install
22- - name : Fix lint issues
23- run : pnpm run lint:fix
16+ - run : pnpm run lint:fix
2417 - uses : autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
25- with :
26- commit-message : " chore: apply automated updates"
18+ with : { commit-message: "chore: apply automated updates" }
Original file line number Diff line number Diff line change 11name : ci
22
3- on :
4- push :
5- branches :
6- - main
7- pull_request :
8- branches :
9- - main
3+ on : { push: { branches: [main] }, pull_request: { branches: [main] } }
104
115jobs :
126 ci :
137 runs-on : ubuntu-latest
148 strategy :
15- matrix :
16- node : [18, 20, 22]
9+ matrix : { node: [18, 20, 22, 24] }
1710 steps :
18- - uses : actions/checkout@v4
11+ - uses : actions/checkout@v5
1912 - run : corepack enable
2013 - uses : actions/setup-node@v4
21- with :
22- node-version : ${{ matrix.node }}
23- cache : " pnpm"
14+ with : { node-version: "${{ matrix.node }}", cache: "pnpm" }
2415 - run : pnpm install
2516 - run : pnpm lint
2617 - run : pnpm build
You can’t perform that action at this time.
0 commit comments