Skip to content

Commit e05c139

Browse files
committed
update shipjs config
1 parent 881a95a commit e05c139

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ship.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import execa from 'execa'
22
import path from 'path'
3-
import { promises as fs } from 'fs'
3+
import { promises as fs, readFileSync } from 'fs'
44

55
const dirname = path.dirname(new URL(import.meta.url).pathname)
66

@@ -59,10 +59,10 @@ export default {
5959
`${releaseType} release v${version}`,
6060
shouldRelease: () => true,
6161
releases: {
62-
extractChangelog: async ({ version, dir }) => {
62+
extractChangelog: ({ version, dir }) => {
6363
const changelogPath = path.resolve(dir, 'CHANGELOG.md')
6464
try {
65-
const changelogFile = await fs.readFile(changelogPath, 'utf8')
65+
const changelogFile = readFileSync(changelogPath, 'utf8')
6666
const ret = extractSpecificChangelog(changelogFile, version)
6767
return ret
6868
} catch (err) {

0 commit comments

Comments
 (0)