Skip to content

Commit 117835c

Browse files
committed
update shipjs task
1 parent c27fa2c commit 117835c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ship.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ module.exports = {
6060
},
6161
updateChangelog: false,
6262
buildCommand: ({ isYarn, version }) => 'yarn build:type',
63-
beforeCommitChanges: ({ nextVersion, exec, dir }) => {
64-
return new Promise(resolve => {
65-
const pkg = require('./package.json')
66-
commitChangelog(pkg.version, nextVersion).then(resolve)
67-
})
63+
beforeCommitChanges: async ({ nextVersion, exec, dir }) => {
64+
const pkg = require('./package.json')
65+
await commitChangelog(pkg.version, nextVersion)
66+
await exec('yarn format:package')
6867
},
6968
formatCommitMessage: ({ version, releaseType, mergeStrategy, baseBranch }) =>
7069
`${releaseType} release v${version}`,

0 commit comments

Comments
 (0)