Skip to content

Commit

Permalink
fix: still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 29, 2021
1 parent 2a5013c commit 73ff8b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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
15 changes: 9 additions & 6 deletions scripts/release.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import chalk from "chalk"

(() => {
// const chalk = require('chalk')
const execa = require('execa')
Expand Down Expand Up @@ -37,19 +39,20 @@
]
}

run(target)
run()

async function run(target: string) {
async function run() {
const nextVersion = await getNextVersion()
await prepare(target, nextVersion)
await release()
}

async function prepare(target: string, nextVersion: string) {
const buildScript = path.resolve(__dirname, 'build.ts')
execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
execa.sync('npx', ['semantic-release'])
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'])
}

async function release() {
Expand All @@ -61,7 +64,7 @@
plugins: releaserc.plugins
}, {
// Run semantic-release from `/path/to/git/repo/root` without having to change local process `cwd` with `process.chdir()`
cwd: '',
// cwd: '',
// Pass the variable `MY_ENV_VAR` to semantic-release without having to modify the local `process.env`
env: { ...process.env },
// Store stdout and stderr to use later instead of writing to `process.stdout` and `process.stderr`
Expand Down

0 comments on commit 73ff8b3

Please sign in to comment.