Skip to content

Commit ad6e65c

Browse files
committed
adding build step to node workflow
1 parent b083584 commit ad6e65c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/node.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
- name: Run tests
2929
run: bun test
3030
working-directory: node/
31+
32+
- name: Build
33+
run: bun pack
34+
working-directory: node/
3135

3236
# - name: Upload test results (optional)
3337
# uses: actions/upload-artifact@v3

node/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"scripts": {
44
"dev": "bun examples/realtime-events.ts",
55
"format": "prettier --config .prettierrc.json --write \"**/*.{ts,md}\"",
6-
"type-check": "tsc"
6+
"type-check": "tsc",
7+
"clean": "rm -rf dist",
8+
"pack": "bun clean && bun build src/index.ts --outdir dist"
79
},
810
"dependencies": {},
911
"devDependencies": {

0 commit comments

Comments
 (0)