Fix yarn authentication in release CI (option 1) #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow up of #64
Since I tested #64 at the beginning with npm, setting the enviornment variable
NPM_TOKENwas enough, as npm picked that up, but yarn doesn't do that and it needs the settingnpmAuthTokenin the.yarnrc.ymlsettings file to be set correctly.But when you use that in the CI, the release CI and build CI fail, as
NPM_TOKENis not set everywhere, so it has a default empty value in the CI's .I tested this entirely with a private registry and it works.
This is one possible fix of the release CI, see #72 for the 2. option (which doesn't work)