Skip to content

Commit 9363390

Browse files
committed
ci: use shared workflow
1 parent 42af68e commit 9363390

File tree

5 files changed

+27
-120
lines changed

5 files changed

+27
-120
lines changed

.github/workflows/autofix-ci.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,14 @@
11
name: autofix.ci
2+
23
on:
34
push:
45
branches:
56
- main
67

78
pull_request: {}
89

9-
permissions:
10-
contents: read
11-
1210
jobs:
1311
autofix:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
18-
- name: Setup PNPM
19-
run: corepack enable
20-
21-
- name: Setup node
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: 24.x
25-
cache: pnpm
26-
27-
- name: Setup
28-
run: npm i -g @antfu/ni
29-
30-
- name: Install
31-
run: ni --no-frozen-lockfile
32-
33-
- name: Build
34-
run: nr build
35-
36-
- name: Lint and fix
37-
run: nr lint:fix
38-
39-
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
12+
uses: so1ve/workflows/.github/workflows/autofix-ci.yml@v1
13+
permissions:
14+
contents: read

.github/workflows/ci.yml

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -10,81 +10,5 @@ on:
1010
- main
1111

1212
jobs:
13-
lint:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
18-
- name: Setup PNPM
19-
run: corepack enable
20-
21-
- name: Setup node
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: 24.x
25-
cache: pnpm
26-
27-
- name: Setup
28-
run: npm i -g @antfu/ni
29-
30-
- name: Install
31-
run: nci
32-
33-
- name: Lint
34-
run: nr lint
35-
36-
typecheck:
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v3
40-
41-
- name: Setup PNPM
42-
run: corepack enable
43-
44-
- name: Setup node
45-
uses: actions/setup-node@v3
46-
with:
47-
node-version: 24.x
48-
cache: pnpm
49-
50-
- name: Setup
51-
run: npm i -g @antfu/ni
52-
53-
- name: Install
54-
run: nci
55-
56-
- name: Typecheck
57-
run: nr typecheck
58-
59-
test:
60-
runs-on: ${{ matrix.os }}
61-
62-
strategy:
63-
matrix:
64-
node: [22.x, 24.x]
65-
os: [ubuntu-latest, windows-latest, macos-latest]
66-
fail-fast: false
67-
68-
steps:
69-
- uses: actions/checkout@v3
70-
71-
- name: Setup PNPM
72-
run: corepack enable
73-
74-
- name: Set node version to ${{ matrix.node }}
75-
uses: actions/setup-node@v3
76-
with:
77-
node-version: ${{ matrix.node }}
78-
cache: pnpm
79-
80-
- name: Setup
81-
run: npm i -g @antfu/ni
82-
83-
- name: Install
84-
run: nci
85-
86-
- name: Build
87-
run: nr build
88-
89-
- name: Test
90-
run: nr test
13+
ci:
14+
uses: so1ve/workflows/.github/workflows/conventional-ci.yml@v1

.github/workflows/lock.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Lock Threads
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
lock:
10+
uses: so1ve/workflows/.github/workflows/lock.yml@v1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Release Commit to pkg.pr.new
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release-commit:
7+
uses: so1ve/workflows/.github/workflows/release-commit.yml@v1
8+
with:
9+
compact: true

.github/workflows/release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,8 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
1011

1112
jobs:
1213
release:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18-
19-
- uses: actions/setup-node@v3
20-
with:
21-
node-version: 24.x
22-
23-
- run: npx changelogithub
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
uses: so1ve/workflows/.github/workflows/release.yml@v1

0 commit comments

Comments
 (0)