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+ # Created using @tscircuit/plop (npm install -g @tscircuit/plop)
2+ name : Format Check
3+
4+ on :
5+ push :
6+ branches : [main]
7+ pull_request :
8+ branches : [main]
9+
10+ jobs :
11+ format-check :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup bun
18+ uses : oven-sh/setup-bun@v2
19+ with :
20+ bun-version : latest
21+
22+ - name : Install dependencies
23+ run : bun install
24+
25+ - name : Run format check
26+ run : bun run format:check
Original file line number Diff line number Diff line change 1+ # Created using @tscircuit/plop (npm install -g @tscircuit/plop)
2+ name : Publish to npm
3+ on :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ token : ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
14+ - name : Setup bun
15+ uses : oven-sh/setup-bun@v2
16+ with :
17+ bun-version : latest
18+ - uses : actions/setup-node@v3
19+ with :
20+ node-version : 20
21+ registry-url : https://registry.npmjs.org/
22+ - run : npm install -g pver
23+ - run : bun install --frozen-lockfile
24+ - run : bun run build
25+ - run : pver release
26+ env :
27+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
28+ GITHUB_TOKEN : ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Created using @tscircuit/plop (npm install -g @tscircuit/plop)
2+ name : Bun Test
3+
4+ on :
5+ pull_request :
6+ push :
7+ branches :
8+ - main
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 5
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Setup bun
20+ uses : oven-sh/setup-bun@v2
21+ with :
22+ bun-version : latest
23+
24+ - name : Install dependencies
25+ run : bun install
26+
27+ - name : Run tests
28+ run : bun test
Original file line number Diff line number Diff line change 1+ # Created using @tscircuit/plop (npm install -g @tscircuit/plop)
2+ name : Type Check
3+
4+ on :
5+ push :
6+ branches : [main]
7+ pull_request :
8+ branches : [main]
9+
10+ jobs :
11+ type-check :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup bun
18+ uses : oven-sh/setup-bun@v2
19+ with :
20+ bun-version : latest
21+
22+ - name : Install dependencies
23+ run : bun i
24+
25+ - name : Run type check
26+ run : bunx tsc --noEmit
You can’t perform that action at this time.
0 commit comments