Skip to content

ListPackageVersions

Source: src/AWS/CodeArtifact/ListPackageVersions.ts

Runtime binding for codeartifact:ListPackageVersions.

Lists a package’s versions in the bound repository. Provide the implementation with Effect.provide(AWS.CodeArtifact.ListPackageVersionsHttp).

const listVersions = yield* AWS.CodeArtifact.ListPackageVersions(repo);
const res = yield* listVersions({
format: "generic",
namespace: "my-ns",
package: "my-package",
status: "Published",
});
console.log(res.versions?.map((v) => v.version));