Skip to content

Commit bd2cfb5

Browse files
committed
fix: shipjs config
1 parent c35a184 commit bd2cfb5

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

@@ -82,10 +82,10 @@ export default {
8282
`${releaseType} release v${version}`,
8383
shouldRelease: () => true,
8484
releases: {
85-
extractChangelog: async ({ version, dir }) => {
85+
extractChangelog: ({ version, dir }) => {
8686
const changelogPath = path.resolve(dir, 'CHANGELOG.md')
8787
try {
88-
const changelogFile = await fs.readFile(changelogPath, 'utf-8')
88+
const changelogFile = readFileSync(changelogPath, 'utf-8')
8989
const ret = extractSpecificChangelog(changelogFile, version)
9090
return ret
9191
} catch (err) {

0 commit comments

Comments
 (0)