Skip to content

Commit 5fa29d3

Browse files
authored
Merge pull request #3 from techmannih/workflow
add some important workflow
2 parents 83bb60e + 8183f3e commit 5fa29d3

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

.github/workflows/bun-formatcheck.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}

.github/workflows/bun-test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)