diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8ab6fce..a227547 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -74,7 +74,8 @@ jobs: // Use ENABLE_SELF_HOSTED to decide what the build matrix below // should include. - const {hosted, selfHosted} = require("${{ github.workspace }}/repo-src/build-matrix.json"); + const buildMatrix = JSON.parse(fs.readFileSync("${{ github.workspace }}/repo-src/build-matrix.json")); + const {hosted, selfHosted} = buildMatrix; const matrix = enableSelfHosted ? hosted.concat(selfHosted) : hosted; // Output a JSON object consumed by the build matrix below.