Skip to content

Commit

Permalink
Merge pull request #1181 from project-chip/versionfix
Browse files Browse the repository at this point in the history
Fix versioning
  • Loading branch information
Apollon77 authored Sep 9, 2024
2 parents 140ea64 + 886b234 commit b3b2974
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/official-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b3b2974

Please sign in to comment.