chore(npm): publish rc version for prereleases #528
Merged
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.
Description
I wouldn't call myself a Bash legend but I think this does the trick. FWIW I tested it using a Bash session, but I can't say for 100% certain the
""
wrapping around the injected value from the GitHub workflow steps is correct, or if GitHub now adds double double quotes (as inif [ ""true"" = "true" ]
).As for the change on line 252, that's mostly just cleaned and moved to
package.json.tmpl
. Note that the binaries cannot be published withyarn npm publish
because that package.json doesn't reside in a yarn configured folder and we probably don't want that anyway.I looked at the history for
npm/git-cliff/package.json
and found this commit: 4218043#diff-09031284f88e0ed62cdbc8693d473bf5b8b9c5674257763d8d8ca0cebfc87a44. I see that you manually set the version to anrc
version and I assume this commit then triggered this workflow so that should make it all work.Motivation and Context
Requested in this comment: #514 (comment)
How Has This Been Tested?
I tested the individual steps using a Bash terminal session locally:
Screenshots / Logs (if applicable)
N.A.
Types of Changes
Checklist:
I have updated the documentation accordingly.N.A.I have formatted the code with rustfmt.N.A.I checked the lints with clippy.N.A.I have added tests to cover my changes.N.A.All new and existing tests passed.N.A.