@@ -176186,11 +176186,11 @@ function prepareNPMArtifacts() {
176186
176186
}
176187
176187
function bundleNPMArtifacts() {
176188
176188
return __awaiter(this, void 0, void 0, function* () {
176189
- const releaseFolder = "_npm-release";
176190
- external_fs_.mkdirSync(releaseFolder);
176191
176189
const workingDirectory = core.getInput("working-directory") || process.cwd();
176192
176190
external_fs_.statSync(workingDirectory);
176193
176191
process.chdir(workingDirectory);
176192
+ const releaseFolder = external_path_.join(workingDirectory, "_npm-release");
176193
+ external_fs_.mkdirSync(releaseFolder);
176194
176194
const { artifacts } = yield artifact_default().listArtifacts();
176195
176195
const artifactFoldersList = yield Promise.all(artifacts.map((a) => __awaiter(this, void 0, void 0, function* () {
176196
176196
const folderName = `platform-${a.name}`;
@@ -176245,20 +176245,20 @@ function bundleNPMArtifacts() {
176245
176245
"esyInstallRelease.js",
176246
176246
].concat(artifactFolders),
176247
176247
}, null, 2);
176248
- external_fs_.writeFileSync(external_path_.join(__dirname, "..", "_release" , "package.json"), packageJson, {
176248
+ external_fs_.writeFileSync(external_path_.join(releaseFolder , "package.json"), packageJson, {
176249
176249
encoding: "utf8",
176250
176250
});
176251
176251
try {
176252
176252
console.log("Copying LICENSE");
176253
- external_fs_.copyFileSync(external_path_.join("LICENSE"), external_path_.join(releaseFolder, "LICENSE"));
176253
+ external_fs_.copyFileSync(external_path_.join(workingDirectory, "LICENSE"), external_path_.join(releaseFolder, "LICENSE"));
176254
176254
}
176255
176255
catch (e) {
176256
176256
console.warn("No LICENSE found");
176257
176257
}
176258
176258
console.log("Copying README.md");
176259
- external_fs_.copyFileSync(external_path_.join("README.md"), external_path_.join(releaseFolder, "_release" , "README.md"));
176259
+ external_fs_.copyFileSync(external_path_.join(workingDirectory, "README.md"), external_path_.join(releaseFolder, "README.md"));
176260
176260
console.log("Copying postinstall.js");
176261
- external_fs_.copyFileSync(external_path_.join("release-postinstall.js"), external_path_.join(releaseFolder, "postinstall.js"));
176261
+ external_fs_.copyFileSync(external_path_.join(workingDirectory, "release-postinstall.js"), external_path_.join(releaseFolder, "postinstall.js"));
176262
176262
console.log("Creating placeholder files");
176263
176263
const placeholderFile = `:; echo "You need to have postinstall enabled"; exit $?
176264
176264
@ECHO OFF
@@ -176276,7 +176276,7 @@ ECHO You need to have postinstall enabled`;
176276
176276
}
176277
176277
});
176278
176278
let tarFile = `npm-release.tgz`;
176279
- yield compress("_release" , tarFile);
176279
+ yield compress(releaseFolder , tarFile);
176280
176280
yield artifact_default().uploadArtifact("npm-release", [tarFile], process.env.GITHUB_WORKSPACE, {
176281
176281
// The level of compression for Zlib to be applied to the artifact archive.
176282
176282
// - 0: No compression
0 commit comments