Skip to content

Commit ec7c0b7

Browse files
committed
chore: update ci
1 parent 6f99428 commit ec7c0b7

File tree

4 files changed

+24
-47
lines changed

4 files changed

+24
-47
lines changed

.github/workflows/autofix.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
name: autofix.ci # needed to securely identify the workflow
2-
3-
on:
4-
pull_request:
5-
push:
6-
branches: ["main"]
7-
8-
permissions:
9-
contents: read
10-
1+
name: autofix.ci
2+
on: { push: {}, pull_request: {} }
3+
permissions: { contents: read }
114
jobs:
125
autofix:
136
runs-on: ubuntu-latest
147
steps:
158
- uses: actions/checkout@v6
16-
- run: corepack enable
9+
- run: npm i -fg corepack && corepack enable
1710
- uses: actions/setup-node@v6
18-
with:
19-
node-version: lts/*
20-
cache: "pnpm"
11+
with: { node-version: lts/*, cache: "pnpm" }
2112
- run: pnpm install
22-
- run: pnpm build --stub
23-
- run: pnpm codeup apply --actions ./actions/unjs
24-
- run: pnpm lint:fix
25-
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
26-
with:
27-
commit-message: "chore: apply automated actions"
13+
- run: pnpm format
14+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
15+
with: { commit-message: "chore: apply automated updates" }

.github/workflows/checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: checks
2+
on: { push: {}, pull_request: {} }
3+
jobs:
4+
checks:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v6
8+
- run: npm i -fg corepack && corepack enable
9+
- uses: actions/setup-node@v6
10+
with: { node-version: lts/*, cache: "pnpm" }
11+
- run: pnpm install
12+
- run: pnpm lint
13+
- run: pnpm typecheck
14+
- run: pnpm build

.github/workflows/ci.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"prepack": "pnpm build",
2424
"play": "jiti playground",
2525
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags && pnpm build --stub",
26-
"test": "pnpm lint && pnpm test:types",
27-
"test:types": "tsgo --noEmit --skipLibCheck"
26+
"test": "pnpm lint && pnpm typecheck",
27+
"typecheck": "tsgo --noEmit --skipLibCheck"
2828
},
2929
"dependencies": {
3030
"citty": "^0.2.0",

0 commit comments

Comments
 (0)