Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Commit

Permalink
chore(tools): use yarn pack in postchangelog script
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 1, 2021
1 parent 34e2a18 commit 6b3ab68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/cli/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const options: IGreaseOptions = {
releaseBranchWhitelist: ['release/*'],
releaseCommitMessageFormat: `release: ${$name}@{{currentTag}}`,
scripts: {
postchangelog: `npm pack ${argv.dryRun ? '--dry-run' : ''}`.trim(),
postchangelog: `yarn pack -o %s-%v.tgz ${(argv.d && '-n') || ''}`.trim(),
postcommit: 'git pnv',
postgreaser: 'yarn clean:build && rimraf ./*.tgz',
prerelease: 'yarn test --no-cache'
Expand Down Expand Up @@ -205,5 +205,6 @@ logger(

// Run release workflow
grease(merge({}, options, argv)).catch(error => {
sh.echo(ch.bold.red(inspect(error, false, null)))
if (error.stderr) return
else sh.echo(ch.bold.red(inspect(error, false, null)))
})

0 comments on commit 6b3ab68

Please sign in to comment.