Skip to content

CopyPackageVersions

Source: src/AWS/CodeArtifact/CopyPackageVersions.ts

Runtime binding for codeartifact:CopyPackageVersions.

Copies package versions from another repository in the same domain into the bound repository (the destination) — the standard promotion flow from a staging repository to a release repository. Provide the implementation with Effect.provide(AWS.CodeArtifact.CopyPackageVersionsHttp).

const copyVersions = yield* AWS.CodeArtifact.CopyPackageVersions(releaseRepo);
const res = yield* copyVersions({
sourceRepository: "staging",
format: "generic",
namespace: "my-ns",
package: "my-package",
versions: ["1.0.0"],
});
console.log(res.successfulVersions);