@@ -143889,7 +143889,6 @@ const manifestKey = core.getInput("manifest");
143889143889const prepareNPMArtifactsMode = core.getInput("prepare-npm-artifacts-mode");
143890143890const bundleNPMArtifactsMode = core.getInput("bundle-npm-artifacts-mode");
143891143891const compilerVersion = core.getInput("ocaml-compiler-version");
143892- const staticCompilerVersion = core.getInput("ocaml-static-compiler-version");
143893143892const customPostInstallJS = core.getInput("postinstall-js");
143894143893const setupEsy = core.getInput("setup-esy") || true; // Default behaviour is to install esy for user and cache it
143895143894const setupEsyTarball = core.getInput("setup-esy-tarball");
@@ -144106,9 +144105,6 @@ function prepareNPMArtifacts() {
144106144105 if (!compilerVersion) {
144107144106 throw new Error("Prepare bundle-npm-artifacts needs `ocaml-compiler-version` field to be set in github actions");
144108144107 }
144109- if (!staticCompilerVersion) {
144110- throw new Error("Prepare bundle-npm-artifacts needs `ocaml-static-compiler-version` field to be set in github actions");
144111- }
144112144108 const statusCmd = manifestKey ? `esy ${manifestKey} status` : "esy status";
144113144109 try {
144114144110 const manifestFilePath = JSON.parse(external_child_process_.execSync(statusCmd, { cwd: workingDirectory }).toString()).rootPackageConfigPath;
@@ -144157,9 +144153,6 @@ function bundleNPMArtifacts() {
144157144153 if (!compilerVersion) {
144158144154 throw new Error("Prepare bundle-npm-artifacts needs `ocaml-compiler-version` field to be set in github actions");
144159144155 }
144160- if (!staticCompilerVersion) {
144161- throw new Error("Prepare bundle-npm-artifacts needs `ocaml-static-compiler-version` field to be set in github actions");
144162- }
144163144156 external_fs_.statSync(workingDirectory);
144164144157 process.chdir(workingDirectory);
144165144158 const releaseFolder = external_path_.join(workingDirectory, "_npm-release");
@@ -144214,7 +144207,7 @@ function bundleNPMArtifacts() {
144214144207 repository: mainPackageJson.repository,
144215144208 scripts: {
144216144209 postinstall: rewritePrefix
144217- ? `node -e \"process.env['OCAML_VERSION'] = process.platform == 'linux' ? '${staticCompilerVersion}': '${compilerVersion}'; process.env['OCAML_PKG_NAME'] = 'ocaml'; process.env['ESY_RELEASE_REWRITE_PREFIX']=true; require('./postinstall.js')\"`
144210+ ? `node -e \"process.env['OCAML_VERSION'] = '${compilerVersion}'; process.env['OCAML_PKG_NAME'] = 'ocaml'; process.env['ESY_RELEASE_REWRITE_PREFIX']=true; require('./postinstall.js')\"`
144218144211 : "node ./postinstall.js",
144219144212 },
144220144213 bin: bins,
0 commit comments