File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CI
1+ name : Unit Test
22
33on :
44 push :
5- branches :
6- - main
7-
5+ branches : [main]
86 pull_request :
9- branches :
10- - main
11-
12- jobs :
13- lint :
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v5
17- - uses : pnpm/action-setup@v4
18- with :
19- run_install : false
20- - uses : actions/setup-node@v4
21- with :
22- node-version : lts/*
23- cache : pnpm
24-
25- - run : pnpm i -g @antfu/ni
26- - run : nci
27- - run : nr lint
28- - run : nr typecheck
7+ branches : [main]
298
30- test :
31- runs-on : ${{ matrix.os }}
9+ permissions : {}
3210
33- strategy :
34- matrix :
35- node : [lts/*]
36- os : [ubuntu-latest, windows-latest, macos-latest]
37- fail-fast : false
38-
39- steps :
40- - uses : actions/checkout@v5
41- - uses : pnpm/action-setup@v4
42- with :
43- run_install : false
44- - name : Set node ${{ matrix.node }}
45- uses : actions/setup-node@v4
46- with :
47- node-version : ${{ matrix.node }}
48- cache : pnpm
49-
50- - run : pnpm i -g @antfu/ni
51- - run : nci
52- - run : nr build
53- - run : nr test
11+ jobs :
12+ unit-test :
13+ uses : sxzz/workflows/.github/workflows/unit-test.yml@v1
Original file line number Diff line number Diff line change 11name : Release
22
3- permissions :
4- id-token : write
5- contents : write
6-
73on :
84 push :
95 tags :
106 - ' v*'
117
128jobs :
139 release :
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v5
17- with :
18- fetch-depth : 0
19- - uses : pnpm/action-setup@v4
20- - uses : actions/setup-node@v4
21- with :
22- node-version : lts/*
23- registry-url : https://registry.npmjs.org/
24-
25- - run : pnpm dlx changelogithub
26- continue-on-error : true
27- env :
28- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
29-
30- - run : pnpm install
31- - run : npm i -g npm@latest && pnpm publish -r --access public --no-git-checks
10+ uses : sxzz/workflows/.github/workflows/release.yml@v1
11+ with :
12+ publish : true
13+ permissions :
14+ contents : write
15+ id-token : write
You can’t perform that action at this time.
0 commit comments