Skip to content

Commit 76f2e7f

Browse files
committed
ci: remove test step from release workflow and update build script to copy additional files to the root directory before building.
1 parent 13b7d90 commit 76f2e7f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
- name: Install dependencies
2222
run: bun install
2323

24-
- name: Run tests
25-
run: bun test
26-
2724
- name: Build package
2825
run: bun run build
2926

scripts/build.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { $, build } from "bun";
22

3+
const files = ["zip_wrapper.c", "miniz.c", "miniz.h"];
4+
5+
for (const file of files) {
6+
await $`cp src/${file} .`;
7+
console.log(`Copied ${file} to root`);
8+
}
9+
310
// bun build src/index.ts --outdir dist --target node --format esm --sourcemap=linked
411
await build({
512
entrypoints: ["src/index.ts"],
@@ -11,7 +18,6 @@ await build({
1118

1219
console.log("Build complete");
1320

14-
const files = ["zip_wrapper.c", "miniz.c", "miniz.h"];
1521

1622
for (const file of files) {
1723
await $`cp src/${file} dist`;

0 commit comments

Comments
 (0)