Skip to content

Commit

Permalink
fix: still didn't find the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 29, 2021
1 parent a7b95ac commit f339bd5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/vue-quill/src/assets/snow.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ backgroundColor = #fff
inactiveColor = #4B5563
shadowColor = #D1D5DB
textColor = #4B5563
// Additional color
// Additional colors
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
70 changes: 35 additions & 35 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
await release()
}

async function prepare(target: string/*, nextVersion: string*/) {
try {
// const buildScript = path.resolve(__dirname, 'build.ts')
// console.log(chalk.bgCyan("Build package"))
// execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
console.log(chalk.bgCyan("Zipping distribution file"))
execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
} catch (err) {
console.log(`>>>>>>>>>>>>> ${err}`)
}
}
// async function prepare(target: string/*, nextVersion: string*/) {
// try {
// // const buildScript = path.resolve(__dirname, 'build.ts')
// // console.log(chalk.bgCyan("Build package"))
// // execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
// console.log(chalk.bgCyan("Zipping distribution file"))
// execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
// } catch (err) {
// console.log(`>>>>>>>>>>>>> ${err}`)
// }
// }

async function release() {
try {
Expand Down Expand Up @@ -108,28 +108,28 @@
}
}

async function getNextVersion(): Promise<string> {
try {
const { nextRelease } = await semanticRelease({
branches: releaserc.branches,
repositoryUrl: pkg.repository.url,
dryRun: true,
ci: false,
plugins: [
'@semantic-release/commit-analyzer',
[
"@semantic-release/exec",
{
prepareCmd: "npx ts-node ../../scripts/build.ts --nextVersion ${nextRelease.version}"
}
]
]
})
if (nextRelease) return nextRelease.version
else console.log('No release will bepublished')
} catch (err) {
console.error('Failed to retrieve next version with %O', err)
}
return pkg.version
}
// async function getNextVersion(): Promise<string> {
// try {
// const { nextRelease } = await semanticRelease({
// branches: releaserc.branches,
// repositoryUrl: pkg.repository.url,
// dryRun: true,
// ci: false,
// plugins: [
// '@semantic-release/commit-analyzer',
// [
// "@semantic-release/exec",
// {
// prepareCmd: "npx ts-node ../../scripts/build.ts --nextVersion ${nextRelease.version}"
// }
// ]
// ]
// })
// if (nextRelease) return nextRelease.version
// else console.log('No release will bepublished')
// } catch (err) {
// console.error('Failed to retrieve next version with %O', err)
// }
// return pkg.version
// }
})()

0 comments on commit f339bd5

Please sign in to comment.