As of January 2023, the deploy_npm using npm v8.x rule appears to stop working with pre-generated auth tokens for Sonatype repositories. However, we discover that the simpler mechanism of using base64 encoded username/password does work.
Using the base64 encoded authenciation is also recommended by Sonatype, we can successfully deploy.
However, the deployment to centralised NPM repositories may still require using token-based authentication. As a result, we extend the deployment rule to support both username/password or token-based authentication.
What is the goal of this PR?
As of January 2023, the
deploy_npm
using npm v8.x rule appears to stop working with pre-generated auth tokens for Sonatype repositories. However, we discover that the simpler mechanism of using base64 encoded username/password does work.Using the base64 encoded authenciation is also recommended by Sonatype, we can successfully deploy.
However, the deployment to centralised NPM repositories may still require using token-based authentication. As a result, we extend the deployment rule to support both username/password or token-based authentication.
This issue was last worked on in https://github.com/vaticle/bazel-distribution/pull/330
What are the changes implemented in this PR?