File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Setup Bun
19+ uses : oven-sh/setup-bun@v1
20+ with :
21+ bun-version : latest
22+
23+ - name : Install Dependencies
24+ run : bun install
25+
26+ - name : Lint & Build
27+ run : |
28+ bun lint
29+ # bun run test
30+ bun run build
Original file line number Diff line number Diff line change 1+ name : Publish Package
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Triggers on version tags like v1.0.0
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Setup Bun
15+ uses : oven-sh/setup-bun@v1
16+ with :
17+ bun-version : latest
18+
19+ - name : Install Dependencies
20+ run : bun install
21+
22+ - name : Build
23+ run : bun run build
24+
25+ - name : Configure NPM
26+ run : |
27+ cd packages/agent-sdk
28+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
29+
30+ - name : Publish to NPM
31+ run : |
32+ cd packages/agent-sdk
33+ bun publish --no-git-checks
34+ env :
35+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments