We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683b4cd commit e2ea229Copy full SHA for e2ea229
1 file changed
.github/workflows/release.yml
@@ -29,16 +29,29 @@ jobs:
29
- name: Build JS
30
run: npm run build
31
32
- - name: Package binary (pkg)
+ - name: Bundle for pkg (CJS)
33
+ run: |
34
+ npx --yes esbuild@latest dist/index.js \
35
+ --bundle \
36
+ --platform=node \
37
+ --format=cjs \
38
+ --target=node20 \
39
+ --outfile=dist/bundle.cjs
40
+
41
+ - name: Package (pkg)
42
run: |
43
npx --yes @yao-pkg/pkg@latest \
44
-t node20-linux-x64 \
45
--output dist/omniboard-linux-x64 \
- dist/index.js
-
46
+ dist/bundle.cjs
47
48
cd dist
49
tar -cvzf omniboard-linux-x64.tar.gz omniboard-linux-x64
50
51
+ - name: Smoke test
52
53
+ ./dist/omniboard-linux-x64 --help
54
55
- name: Prepare changelog
56
run: npx ts-node ./tooling/release-changelog-extractor.ts
57
0 commit comments