diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7859e52..5555b44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: with: result-encoding: string script: | - const version = await require("./index.mjs")(); + const version = await import("./index.mjs")(); console.log(`Version: ${version}`); return version; @@ -158,7 +158,7 @@ jobs: release_id: ${{ needs.create_release.outputs.release_id }} with: script: | - await require("./index.js").release(); + await (await import("./index.mjs")).release(); - name: Build .ahqstore (Electron) run: ahqstore upload