Skip to content

Commit

Permalink
fix: coba lagi dah
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 29, 2021
1 parent d0865e4 commit 25bb429
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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 colors
// Additional color
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
16 changes: 11 additions & 5 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,20 @@
}

async function prepare(target: string, nextVersion: string) {
const buildScript = path.resolve(__dirname, 'build.ts')
console.log(chalk.bgCyan("Build package"))
await execa('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
console.log(chalk.bgCyan("Zipping distribution file"))
await execa('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
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 {
console.log(`>>>>>>>>>>>>> Semantic release`)
const result = await semanticRelease({
// Core options
branches: releaserc.branches,
Expand All @@ -71,6 +76,7 @@
});

if (result) {
console.log(`>>>>>>>>>>>>> Result`)
const { lastRelease, commits, nextRelease, releases } = result;

console.log(`Published ${nextRelease.type} release version ${nextRelease.version} containing ${commits.length} commits.`);
Expand Down

0 comments on commit 25bb429

Please sign in to comment.