@@ -3,8 +3,8 @@ import { exec, getExecOutput } from "@actions/exec";
33import * as github from "@actions/github" ;
44import { PreState } from "@changesets/types" ;
55import { Package , getPackages } from "@manypkg/get-packages" ;
6- import fs from "fs-extra " ;
7- import path from "path" ;
6+ import fs from "node:fs " ;
7+ import path from "node: path" ;
88import resolveFrom from "resolve-from" ;
99import * as semver from "semver" ;
1010import { Git } from "./git" ;
@@ -30,7 +30,7 @@ const createRelease = async (
3030) => {
3131 let changelog ;
3232 try {
33- changelog = await fs . readFile ( path . join ( pkg . dir , "CHANGELOG.md" ) , "utf8" ) ;
33+ changelog = fs . readFileSync ( path . join ( pkg . dir , "CHANGELOG.md" ) , "utf8" ) ;
3434 } catch ( err ) {
3535 if ( isErrorWithCode ( err , "ENOENT" ) ) {
3636 // if we can't find a changelog, the user has probably disabled changelogs
@@ -294,7 +294,7 @@ export async function runVersion({
294294 let changedPackages = await getChangedPackages ( cwd , versionsByDirectory ) ;
295295 let changedPackagesInfoPromises = Promise . all (
296296 changedPackages . map ( async ( pkg ) => {
297- let changelogContents = await fs . readFile (
297+ let changelogContents = fs . readFileSync (
298298 path . join ( pkg . dir , "CHANGELOG.md" ) ,
299299 "utf8"
300300 ) ;
0 commit comments