Skip to content

Commit

Permalink
Follow redirects when downloading packages from Artifactory
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Oct 16, 2024
1 parent a610a0a commit 5830278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function deploy(pkgName, pkgTag) {
} catch (err) {
const tgzUrl = await utils.getPackageInfo(`${PKG_SCOPE}/${pkgName}@${pkgTag}`, VIEW_OPTS, "dist.tarball");
const fullPkgName = `${pkgName}-${pkgVersion}.tgz`;
await utils.execAndGetStderr("curl", ["-fs", "-o", fullPkgName, tgzUrl]);
await utils.execAndGetStderr("curl", ["-fsL", "-o", fullPkgName, tgzUrl]);
await utils.execAndGetStderr("bash", ["scripts/repackage_tar.sh", fullPkgName, TARGET_REGISTRY, pkgVersion]);
pkgTag = pkgTag !== pkgVersion ? pkgTag : TEMP_NPM_TAG;
await utils.execAndGetStderr("npm", ["publish", fullPkgName, "--access", "public", "--tag", pkgTag]);
Expand Down

0 comments on commit 5830278

Please sign in to comment.