Skip to content

Commit

Permalink
Merge pull request #293 from zowe/ci/fix-curl-download
Browse files Browse the repository at this point in the history
Follow redirects when downloading packages from Artifactory
  • Loading branch information
t1m0thyj authored Oct 16, 2024
2 parents a610a0a + 5830278 commit c25b06f
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 c25b06f

Please sign in to comment.