Skip to content

Commit d146a87

Browse files
committed
chore: update ci
1 parent c35e71e commit d146a87

File tree

2 files changed

+10
-27
lines changed

2 files changed

+10
-27
lines changed

.github/workflows/autofix.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
name: 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

117
jobs:
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" }

.github/workflows/ci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
name: 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

115
jobs:
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

0 commit comments

Comments
 (0)