We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 881a95a commit e05c139Copy full SHA for e05c139
ship.config.js
@@ -1,6 +1,6 @@
1
import execa from 'execa'
2
import path from 'path'
3
-import { promises as fs } from 'fs'
+import { promises as fs, readFileSync } from 'fs'
4
5
const dirname = path.dirname(new URL(import.meta.url).pathname)
6
@@ -59,10 +59,10 @@ export default {
59
`${releaseType} release v${version}`,
60
shouldRelease: () => true,
61
releases: {
62
- extractChangelog: async ({ version, dir }) => {
+ extractChangelog: ({ version, dir }) => {
63
const changelogPath = path.resolve(dir, 'CHANGELOG.md')
64
try {
65
- const changelogFile = await fs.readFile(changelogPath, 'utf8')
+ const changelogFile = readFileSync(changelogPath, 'utf8')
66
const ret = extractSpecificChangelog(changelogFile, version)
67
return ret
68
} catch (err) {
0 commit comments