Skip to content

Commit 19e765e

Browse files
authored
infra: update github actions to build correct distribution (#25)
1 parent 0756000 commit 19e765e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
node-version: 20
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
31+
- run: npm run build
3132
- run: npm publish
3233
env:
3334
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"main": "dist/evaluate.js",
66
"module": "dist/evaluate.mjs",
77
"scripts": {
8-
"build": "make build",
9-
"dist": "make dist",
10-
"release": "make release",
11-
"test": "make test"
12-
},
8+
"test": "node --trace-uncaught ./test/index.test.js",
9+
"build": "npx rollup --config rollup.config.js",
10+
"dist": "npm run test && npm run build",
11+
"release": "np --no-tests"
12+
},
1313
"files": [
1414
"README.md",
1515
"LICENSE",

0 commit comments

Comments
 (0)