Skip to content

Commit 53eb0c4

Browse files
committed
chore: update ci
1 parent 101aafa commit 53eb0c4

File tree

4 files changed

+37
-43
lines changed

4 files changed

+37
-43
lines changed

.github/workflows/autofix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
autofix:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
99
- run: npm i -fg corepack && corepack enable
1010
- uses: actions/setup-node@v6
11-
with: { node-version: lts/*, cache: "pnpm" }
11+
with: { node-version: lts/*, cache: pnpm }
1212
- run: pnpm install
1313
- run: pnpm lint:fix
1414
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27

.github/workflows/checks.yml

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

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ci
2+
3+
on:
4+
push: { branches: [main] }
5+
pull_request: { branches: [main] }
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- run: npm i -g --force corepack && corepack enable
13+
- uses: actions/setup-node@v6
14+
with: { node-version: lts/*, cache: pnpm }
15+
- run: pnpm install
16+
- run: pnpm lint
17+
- run: pnpm test:types
18+
- run: pnpm build
19+
- run: pnpm vitest --coverage
20+
- uses: codecov/codecov-action@v3
21+
with: { token: "${{ secrets.CODECOV_TOKEN }}" }
22+
publish:
23+
runs-on: ubuntu-latest
24+
permissions: { id-token: write, contents: read }
25+
needs: tests
26+
if: contains('refs/heads/main', github.ref) && github.event_name == 'push'
27+
steps:
28+
- uses: actions/checkout@v5
29+
with: { fetch-depth: 0 }
30+
- run: npm i -fg corepack && corepack enable
31+
- uses: actions/setup-node@v6
32+
with: { node-version: lts/*, cache: "pnpm" }
33+
- run: pnpm install
34+
- run: pnpm changelogen --bump --canary nightly
35+
- run: npm i -g npm@latest && npm publish --tag latest

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)