Skip to content

Commit a0aabff

Browse files
committed
test publish.yaml
1 parent a9b2376 commit a0aabff

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- name: Build
3636
run: pnpm build
3737

38+
- name: Check for build artifacts
39+
run: |
40+
[ -f dist/cjs/index.js ] || (echo "CJS build missing" && exit 1)
41+
[ -f dist/es/index.mjs ] || (echo "ESM build missing" && exit 1)
42+
3843
- name: Publish
3944
uses: JS-DevTools/npm-publish@v3
4045
with:

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@questdb/nodejs-client",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "QuestDB Node.js Client",
55
"scripts": {
66
"test": "vitest",
@@ -12,8 +12,13 @@
1212
"preview:docs": "serve docs"
1313
},
1414
"files": [
15-
"dist"
15+
"dist/cjs",
16+
"dist/es"
1617
],
18+
"main": "dist/cjs/index.js",
19+
"module": "dist/es/index.mjs",
20+
"types": "dist/cjs/index.d.ts",
21+
"type": "module",
1722
"exports": {
1823
"import": {
1924
"types": "./dist/es/index.d.mts",

0 commit comments

Comments
 (0)