Skip to content

Commit 8519510

Browse files
committed
fix: shipjs config
1 parent 53e376a commit 8519510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ship.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
installCommand: () => 'pnpm install --silent',
4747
buildCommand: ({ isYarn, version }) => 'pnpm build',
4848
beforeCommitChanges: async ({ nextVersion, exec, dir }) => {
49-
return new Promise(resolve => {
49+
return new Promise(async resolve => {
5050
const pkg = await readJson(path.resolve(dirname, './package.json'))
5151
await commitChangelog(pkg.version, nextVersion)
5252
await exec('pnpm fix')
@@ -59,7 +59,7 @@ module.exports = {
5959
`${releaseType} release v${version}`,
6060
shouldRelease: () => true,
6161
releases: {
62-
extractChangelog: ({ version, dir }) => {
62+
extractChangelog: async ({ version, dir }) => {
6363
const changelogPath = path.resolve(dir, 'CHANGELOG.md')
6464
try {
6565
const changelogFile = await fs.readFile(changelogPath, 'utf8')

0 commit comments

Comments
 (0)