-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(publib-npm): allow dry run and support _auth
token type
#821
Conversation
Head branch was pushed to by a user without write access
.npmrc are also created in a temp dir so as to not overwrite existing npmrc in home directory fixes cdklabs#820 cdklabs#819
d489370
to
dfafb8c
Compare
Following this change as publishing with |
Thanks @eknowles for the contribution. Got your email as well. 👍🏻 |
I saw there wasn't any tests around the shell scripts but was on typescript, would you prefer me to test the shell or rewrite in ts? |
I think the goal would be to have an integration test for each shell script entrypoint. The |
@eknowles Yeah that doesn't work. And I didn't test enough 😬 |
This PR fixes 3 problems with NPM publishing
_auth
instead of_authToken
) e.g. Jfrog (closes publib-npm only uses authToken #819)Added two new options for
publib-npm
NPM_DRYRUN
(optional): Set to "true" for a dry runNPM_AUTH_TYPE
(optional): Can be "authToken" (default) or "auth" depending on the type of NPM_TOKEN used for the NPM_REGISTRY