File tree Expand file tree Collapse file tree 4 files changed +19
-72
lines changed Expand file tree Collapse file tree 4 files changed +19
-72
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 11name : Release
22
3- permissions :
4- contents : write
5-
63on :
74 push :
85 tags :
96 - ' v*'
107
118jobs :
129 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 77 branches : [main]
88
99jobs :
10- lint :
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout
14- uses : actions/checkout@v4
15-
16- - name : Install pnpm
17- uses : pnpm/action-setup@v4.1.0
18-
19- - name : Set node LTS
20- uses : actions/setup-node@v4
21- with :
22- node-version : lts/*
23- cache : pnpm
24-
25- - name : Install
26- run : pnpm install
27-
28- - name : Lint
29- run : pnpm run lint
30-
31- - name : Typecheck
32- run : pnpm run typecheck
33-
34- test :
35- runs-on : ${{ matrix.os }}
36-
37- strategy :
38- matrix :
39- os : [ubuntu-latest, windows-latest]
40- node : [20, 22]
41- fail-fast : false
42-
43- steps :
44- - name : Checkout
45- uses : actions/checkout@v4
46-
47- - name : Install pnpm
48- uses : pnpm/action-setup@v4.1.0
49-
50- - name : Set node ${{ matrix.node }}
51- uses : actions/setup-node@v4
52- with :
53- node-version : ${{ matrix.node }}
54- cache : pnpm
55-
56- - name : Install
57- run : pnpm install
58-
59- - name : Build
60- run : pnpm run build
61-
62- - name : Test
63- 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 3636 "test" : " vitest" ,
3737 "typecheck" : " tsc --noEmit" ,
3838 "format" : " prettier --cache --write ." ,
39- "release" : " bumpp && pnpm publish " ,
39+ "release" : " bumpp" ,
4040 "prepublishOnly" : " pnpm run build"
4141 },
4242 "dependencies" : {
You can’t perform that action at this time.
0 commit comments