-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] Add support for yarn npm publish --provenance
and publishConfig.provenance
option
#5430
Comments
Hi, did this feature get any traction? We're interested in using yarn for publishing provenance as well. For context, we currently use |
For impatient ones: you can pack your package using Yarn, but publish it using npm. This way you can still e.g. use Yarn plugins. Only at the very last moment you pass the job on to npm, to publish prepared Here's how I did it: |
I quickly checked the code that publishes packages. It looks like that I am thrilled to see this feature implemented in |
### Changelog None ### Description Follow-up from #278. It appears `yarn npm publish` does not support `--provenance` (yarnpkg/berry#5430). Per yarnpkg/berry#5430 (comment) this can be worked around by using `yarn pack` with `npm publish`.
Describe the user story
npm has recently announced npm provenance public beta. At the moment, the command
yarn npm publish --provenance
produces and error, whilepublishConfig.provenance
is nowhere to be found in the docs, meaning - it may or may not work, who knows?Describe the solution you'd like
Support and document
--provenance
flag inyarn npm publish
commandSupport and document
publishConfig.provenance
option inpackage.json
Describe the drawbacks of your solution
None that I know of
Describe alternatives you've considered
npm publish --provenance
, but that doesn't allow me to use custom hooks I've implemented using Yarn plugins.The text was updated successfully, but these errors were encountered: