fix(ci): publish nightly (#7537)

This commit is contained in:
三咲智子 2022-05-06 20:02:46 +08:00 committed by GitHub
parent 9a88fb4e46
commit 55c2546686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ async function main() {
const pkgs = Object.fromEntries(
(await getWorkspacePackages()).map((pkg) => [pkg.manifest.name!, pkg])
)
const elementPlus = pkgs['element-plus']
const elementPlus = pkgs['element-plus'] || pkgs['@element-plus/nightly']
const eslintConfig = pkgs['@element-plus/eslint-config']
const metadata = pkgs['@element-plus/metadata']
@ -36,9 +36,9 @@ async function main() {
}
try {
writeVersion(elementPlus)
writeVersion(eslintConfig)
writeVersion(metadata)
await writeVersion(elementPlus)
await writeVersion(eslintConfig)
await writeVersion(metadata)
} catch (err) {
errorAndExit(err)
}