Skip to content

Commit 75e1b43

Browse files
committed
ci: fix ci error
1 parent 67e84de commit 75e1b43

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cache: pnpm
2929
registry-url: https://registry.npmjs.org/
3030
- run: pnpm install && pnpm run build
31-
- run: npm publish --tag latest
31+
- run: npm publish
3232
env:
3333
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "klinecharts",
3-
"version": "10.0.0-alpha6",
3+
"version": "10.0.0-alpha7",
44
"description": "Lightweight k-line chart built with html5 canvas",
55
"type": "module",
66
"main": "./dist/index.cjs",
@@ -44,7 +44,8 @@
4444
"license": "Apache-2.0",
4545
"private": false,
4646
"scripts": {
47-
"preinstall": "node scripts/check-env.js",
47+
"prepare": "node scripts/check-env.js && husky install",
48+
"prepublishOnly": "node scripts/pre-publish.js",
4849
"branch-lint": "node scripts/branch-lint.js",
4950
"commit-lint": "commitlint --edit",
5051
"code-lint": "eslint src/**/*.ts",
@@ -57,8 +58,6 @@
5758
"build-core": "pnpm build-esm && pnpm build-cjs && pnpm build-umd",
5859
"build-dts": "dts-bundle-generator --no-banner true --fail-on-class true --umd-module-name klinecharts -o dist/index.d.ts src/index.ts",
5960
"build": "pnpm clean && pnpm build-core && pnpm build-dts",
60-
"prepare": "husky install",
61-
"prepublishOnly": "node scripts/pre-publish.js",
6261
"docs:dev": "pnpm -F=docs dev",
6362
"docs:build": "pnpm -F=docs build",
6463
"docs:preview": "pnpm -F=docs preview",

0 commit comments

Comments
 (0)