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
@@ -82,10 +82,10 @@ export default {
82
82
`${ releaseType } release v${ version } ` ,
83
83
shouldRelease : ( ) => true ,
84
84
releases : {
85
- extractChangelog : async ( { version, dir } ) => {
85
+ extractChangelog : ( { version, dir } ) => {
86
86
const changelogPath = path . resolve ( dir , 'CHANGELOG.md' )
87
87
try {
88
- const changelogFile = await fs . readFile ( changelogPath , 'utf-8' )
88
+ const changelogFile = readFileSync ( changelogPath , 'utf-8' )
89
89
const ret = extractSpecificChangelog ( changelogFile , version )
90
90
return ret
91
91
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments