File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import execa from 'execa'
2
2
import path from 'path'
3
- import { promises as fs } from 'fs'
3
+ import { promises as fs , readFileSync } from 'fs'
4
4
5
5
const dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
6
6
@@ -59,10 +59,10 @@ export default {
59
59
`${ releaseType } release v${ version } ` ,
60
60
shouldRelease : ( ) => true ,
61
61
releases : {
62
- extractChangelog : async ( { version, dir } ) => {
62
+ extractChangelog : ( { version, dir } ) => {
63
63
const changelogPath = path . resolve ( dir , 'CHANGELOG.md' )
64
64
try {
65
- const changelogFile = await fs . readFile ( changelogPath , 'utf8' )
65
+ const changelogFile = readFileSync ( changelogPath , 'utf8' )
66
66
const ret = extractSpecificChangelog ( changelogFile , version )
67
67
return ret
68
68
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments