Skip to content

Commit

Permalink
fix: semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 28, 2021
1 parent f641627 commit ce33da0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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
9 changes: 7 additions & 2 deletions scripts/semantic-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ const args = require('minimist')(process.argv.slice(2))
const targets = args._

if (process.env.CI && targets[0]) {
const rootDir = path.resolve(__dirname, '..')
const pkgDir = path.resolve(__dirname, '../packages', target)
const target = targets[0]
const distDir = path.resolve(pkgDir, 'dist')
const semanticReleaseConfig = path.resolve(pkgDir, 'semantic-release.json')
execa('zip', [`${target}vue-quill-dist.zip`, '-r', distDir])
execa('npx', ['semantic-release', '--extends', semanticReleaseConfig])
execa.sync('cd', [pkgDir])
execa.sync('npm', ['ci'])
execa.sync('cd', [rootDir])
execa.sync('npm', ['ci'])
execa.sync('zip', [`${target}vue-quill-dist.zip`, '-r', distDir])
execa.sync('npx', ['semantic-release', '--extends', semanticReleaseConfig])
} else {
console.log(chalk.redBright("You can't run semantic-release locally"))
}

0 comments on commit ce33da0

Please sign in to comment.