diff --git a/.github/workflows/nightly-dev-release.yml b/.github/workflows/nightly-dev-release.yml index 521d7629c5..66fd311797 100644 --- a/.github/workflows/nightly-dev-release.yml +++ b/.github/workflows/nightly-dev-release.yml @@ -95,7 +95,7 @@ jobs: const dateStr = today.toISOString().split("T")[0].replace(/-/g, ""); const sha = require("child_process").execSync("git rev-parse --short HEAD").toString("utf8").trim(); - const prevVersion = fs.readFile(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); + const prevVersion = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); const parsed = semver.parse(prevVersion); const prereleaseIdentifier = parsed.prerelease[0] || "alpha"; diff --git a/.github/workflows/official-release.yml b/.github/workflows/official-release.yml index f68e06eba3..08408e8043 100644 --- a/.github/workflows/official-release.yml +++ b/.github/workflows/official-release.yml @@ -83,7 +83,7 @@ jobs: const semver = require('semver'); const fs = require("fs"); - const prevVersion = fs.readFile(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); + const prevVersion = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); const parsed = semver.parse(prevVersion); diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 5beaf6166b..cfb41a5dd8 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -105,7 +105,7 @@ jobs: result-encoding: string script: | const fs = require('fs'); - return fs.readFile(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); + return fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/version.txt`, "utf8"); - name: Apply new version to package files if: steps.automerge.outputs.mergeResult == 'merged'