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
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ ci :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : pnpm/action-setup@v4
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : 22
20+ cache : pnpm
21+
22+ - run : pnpm install --frozen-lockfile
23+
24+ - run : pnpm typecheck
25+
26+ - run : pnpm test -- --run
27+
28+ - run : pnpm build
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ id-token : write
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - uses : pnpm/action-setup@v4
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 22
21+ cache : pnpm
22+ registry-url : https://registry.npmjs.org
23+
24+ - run : pnpm install --frozen-lockfile
25+
26+ - run : pnpm build
27+
28+ - run : pnpm publish --provenance --no-git-checks
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments