Skip to content

Commit dd11358

Browse files
committed
chore: don't run test on publishing
Tests are run in a seperate task. See the GitHub release workflows.
1 parent 4e372d4 commit dd11358

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release-npmjs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
registry-url: "https://registry.npmjs.org"
2626
- name: Install dependencies
2727
run: npm ci
28-
- name: Publish (build and test in prepublishOnly hook)
28+
- name: Publish (build in prepublishOnly hook)
2929
run: npm publish --provenance --access public

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
"build": "npm run build:esm && npm run build:d.cts && npm run build:cjs",
5858
"build:d.cts": "cp -f dist/index.d.ts dist/index.d.cts",
5959
"build:cjs": "esbuild src/index.ts --bundle --target=es2022 --platform=node > dist/index.cjs",
60-
"build:esm": "tsc --build src/",
60+
"build:esm": "tsc --build src",
6161
"check": "tsc --build src src/tsconfig-test.json && biome ci --error-on-warnings .",
6262
"clean": "rm -rf dist coverage",
6363
"coverage": "c8 --reporter=lcovonly npm test",
6464
"format": "biome check --linter-enabled=false --write .",
6565
"lint": "biome lint --error-on-warnings .",
66-
"prepublishOnly": "npm run clean && npm run build && npm test",
66+
"prepublishOnly": "npm run clean && npm run build",
6767
"test": "npm run test:dev && npm run test:prod",
6868
"test:dev": "NODE_ENV=development node --test && npm run check",
6969
"test:prod": "node --test && npm run check",

0 commit comments

Comments
 (0)