mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
ci: update release script
This commit is contained in:
parent
844feeae74
commit
28ba0b2897
@ -7,7 +7,6 @@
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"_release": "yarn lint && yarn build && lerna publish --registry https://registry.npmjs.org/",
|
||||
"build": "yarn build:package",
|
||||
"build:package": "lerna run build --stream",
|
||||
"commit": "cz",
|
||||
@ -20,11 +19,11 @@
|
||||
"docs:webpack-build": "vuepress-webpack build docs",
|
||||
"docs:webpack-serve": "vuepress-webpack dev docs",
|
||||
"lerna": "lerna clean && lerna bootstrap",
|
||||
"lerna:publish": "scripts/release/index.mjs",
|
||||
"lerna:publish": "node scripts/release/index.mjs",
|
||||
"lint": "eslint --ext .js,.ts,.vue .",
|
||||
"package:clean": "lerna run clean",
|
||||
"prepare": "husky install",
|
||||
"release": "yarn lint && yarn lerna:publish"
|
||||
"release": "yarn lint && yarn build && lerna publish --registry https://registry.npmjs.org/"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,ts,vue}": "eslint --fix",
|
||||
|
||||
@ -86,8 +86,8 @@ export const release = async () => {
|
||||
'--registry',
|
||||
'https://registry.npmjs.org/',
|
||||
]
|
||||
|
||||
await execa(require.resolve('lerna/cli'), releaseArguments, {
|
||||
const lerna = await import('lerna/cli.js')
|
||||
await execa(lerna, releaseArguments, {
|
||||
stdio: 'inherit',
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user