File tree Expand file tree Collapse file tree 4 files changed +19
-70
lines changed Expand file tree Collapse file tree 4 files changed +19
-70
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Any Commit
2
+ on : [push, pull_request]
3
+
4
+ permissions : {}
5
+
6
+ jobs :
7
+ release :
8
+ uses : sxzz/workflows/.github/workflows/release-commit.yml@v1
9
+ with :
10
+ compact : true
Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
- permissions :
4
- contents : write
5
-
6
3
on :
7
4
push :
8
5
tags :
9
6
- ' v*'
10
7
11
8
jobs :
12
9
release :
13
- runs-on : ubuntu-latest
14
- steps :
15
- - uses : actions/checkout@v4
16
- with :
17
- fetch-depth : 0
18
-
19
- - name : Set node
20
- uses : actions/setup-node@v4
21
- with :
22
- node-version : lts/*
23
-
24
- - run : npx changelogithub
25
- env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10
+ uses : sxzz/workflows/.github/workflows/release.yml@v1
11
+ with :
12
+ publish : true
13
+ permissions :
14
+ contents : write
15
+ id-token : write
Original file line number Diff line number Diff line change 7
7
branches : [main]
8
8
9
9
jobs :
10
- lint :
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@v4
14
-
15
- - name : Install pnpm
16
-
17
-
18
- - name : Set node
19
- uses : actions/setup-node@v4
20
- with :
21
- node-version : lts/*
22
- cache : pnpm
23
-
24
- - name : Install
25
- run : pnpm i
26
-
27
- - name : Lint
28
- run : pnpm run lint
29
-
30
- - name : Typecheck
31
- run : pnpm run typecheck
32
-
33
- test :
34
- runs-on : ${{ matrix.os }}
35
-
36
- strategy :
37
- matrix :
38
- os : [ubuntu-latest, windows-latest]
39
- node : [18, 20, 22]
40
- fail-fast : false
41
-
42
- steps :
43
- - uses : actions/checkout@v4
44
-
45
- - name : Install pnpm
46
-
47
-
48
- - name : Set node ${{ matrix.node }}
49
- uses : actions/setup-node@v4
50
- with :
51
- node-version : ${{ matrix.node }}
52
- cache : pnpm
53
-
54
- - name : Install dependencies
55
- run : pnpm i
56
-
57
- - name : Build
58
- run : pnpm run build
59
-
60
- - name : Test
61
- run : pnpm run test
10
+ unit-test :
11
+ uses : sxzz/workflows/.github/workflows/unit-test.yml@v1
Original file line number Diff line number Diff line change 66
66
"dev" : " tsdown --watch" ,
67
67
"test" : " vitest" ,
68
68
"typecheck" : " tsc --noEmit" ,
69
- "release" : " bumpp && pnpm publish " ,
69
+ "release" : " bumpp" ,
70
70
"prepublishOnly" : " pnpm run build"
71
71
},
72
72
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments