Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed May 31, 2024
1 parent 312bfba commit e0a98a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176190,10 +176190,9 @@ function bundleNPMArtifacts() {
external_fs_.mkdirSync(releaseFolder);
const { artifacts } = yield artifact_default().listArtifacts();
const artifactFoldersList = yield Promise.all(artifacts.map((a) => __awaiter(this, void 0, void 0, function* () {
const { downloadPath } = yield artifact_default().downloadArtifact(a.id);
const folderName = `platform-${(artifact_default())}`;
external_fs_.cpSync(downloadPath, external_path_.join(releaseFolder, folderName), {
recursive: true,
const folderName = `platform-${a.name}`;
yield artifact_default().downloadArtifact(a.id, {
path: external_path_.join(releaseFolder, folderName),
});
return folderName;
})));
Expand Down
7 changes: 3 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ async function bundleNPMArtifacts() {
const { artifacts } = await artifact.listArtifacts();
const artifactFoldersList = await Promise.all(
artifacts.map(async (a: Artifact) => {
const { downloadPath } = await artifact.downloadArtifact(a.id);
const folderName = `platform-${artifact}`;
fs.cpSync(downloadPath!, path.join(releaseFolder, folderName), {
recursive: true,
const folderName = `platform-${a.name}`;
await artifact.downloadArtifact(a.id, {
path: path.join(releaseFolder, folderName),
});
return folderName;
})
Expand Down

0 comments on commit e0a98a3

Please sign in to comment.