-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handle publishing of packages using Yarn Classic #87
Conversation
0b6375b
to
f108c26
Compare
Noticed that one of the CI tests doesn't actually run the intended code at all, which is also fixed in this PR now. Reviewers: Let me know if you prefer me to split that part (and the associated |
0e67952
to
4a7d6b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish we had better testing, but in the absence of that, this PR looks good to me. I just had a question for the hypothetical case where we have a Yarn v1 monorepo.
Is it possible for you to test this PR on a fork of |
--------- Co-authored-by: Elliot Winkler <[email protected]>
invert yarn version detection
Sure, done here. (failing with 404 because the configured
We actually already used a backport of this for publishing Does that suffice? Let me know if there is any particular other repo you'd like to see tested. |
@legobeat Oh cool. No that sounds good, thanks for confirming that. I do see that |
@mcmire It fails regardless of PR contents (unrelated) but I have tested it locally. |
@legobeat Lovely 😫 Well, I have approved now. |
This was previously submitted as #17 and has been reworked.
Reopening as collectively hours are wasted trying to identify compatible combination of actions for legacy repos as they transition to automated publishing.
Yes,
@metamask/action-npm-publish@1
does work for Yarn Classic use-cases but there are further changes in this action that would benefit those still actively maintained Yarn 1 repos.npm publish
/npm pack
when yarn>=v3 not availableyarn pack
and never runs the version-checking code.PUBLISH_NPM_TAG
env var to make the test passNPM_TOKEN
env var ifYARN_NPM_TOKEN
env var not setset -x
to not leak npm token in debug log