File tree Expand file tree Collapse file tree 3 files changed +69
-1538
lines changed Expand file tree Collapse file tree 3 files changed +69
-1538
lines changed Original file line number Diff line number Diff line change 88concurrency : ${{ github.workflow }}-${{ github.ref }}
99
1010jobs :
11+ ci :
12+ name : CI
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout Repo
16+ uses : actions/checkout@v3
17+
18+ - name : Setup pnpm
19+ uses : pnpm/action-setup@v4
20+ with :
21+ run_install : false
22+
23+ - name : Setup node
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : 20
27+ cache : ' pnpm'
28+
29+ - name : Install dependencies
30+ run : pnpm install
31+
32+ - name : Run lint
33+ run : pnpm lint
34+
35+ - name : Build
36+ run : pnpm build
37+
1138 release :
1239 name : Release
1340 runs-on : ubuntu-latest
41+ needs : ci
1442 steps :
1543 - name : Checkout Repo
1644 uses : actions/checkout@v3
1745
18- - name : Setup Node.js 20.x
19- uses : actions/setup-node@v3
46+ - name : Setup pnpm
47+ uses : pnpm/action-setup@v4
48+ with :
49+ run_install : false
50+
51+ - name : Setup node
52+ uses : actions/setup-node@v4
2053 with :
21- node-version : 20.x
54+ node-version : 20
55+ cache : ' pnpm'
2256
23- - name : Install Dependencies
24- run : npm install
57+ - name : Install dependencies
58+ run : pnpm install
2559
26- - name : Create Release Pull Request or Publish to npm
60+ - name : Create PR or publish to npm
2761 id : changesets
2862 uses : changesets/action@v1
2963 with :
30- publish : npm run release
64+ publish : pnpm run release
3165 env :
3266 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3367 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 99 "packageManager" : " pnpm@10.15.0" ,
1010 "scripts" : {
1111 "release" : " pnpm build && changeset publish" ,
12- "build" : " run-s build:*" ,
13- "build:lint" : " biome check ." ,
14- "build:ts" : " tsup ./src" ,
12+ "build" : " tsup ./src" ,
1513 "lint" : " biome check --write ." ,
16- "test" : " node --env-file=.env -r ts-node/register " ,
14+ "test" : " tsx --env-file=.env" ,
1715 "test:stats" : " pnpm test ./test/stats.test.ts" ,
1816 "test:list" : " pnpm test ./test/list.test.ts" ,
1917 "test:create" : " pnpm test ./test/create.test.ts" ,
2725 "@biomejs/biome" : " ^2.2.0" ,
2826 "@changesets/cli" : " ^2.29.6" ,
2927 "@types/node" : " ^24.3.0" ,
30- "npm-run-all" : " ^4.1.5" ,
31- "ts-node" : " ^10.9.2" ,
32- "ts-node-dev" : " ^2.0.0" ,
3328 "tsup" : " ^8.5.0" ,
29+ "tsx" : " ^4.20.4" ,
3430 "typescript" : " ^5.9.2"
3531 },
3632 "keywords" : [
You can’t perform that action at this time.
0 commit comments