Pass runtime metadata in announceBuild
#826
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.
Fixes AP-3715
Depends on https://github.com/chromaui/chromatic/pull/7763
This sends
nodePlatform
,nodeVersion
,packageManager
andpackageManagerVersion
when announcing a build, so that we can track this information.I've split up the
setSpawnParams
job intosetRuntimeMetadata
(part of theinitialize
task) andsetBuildCommand
(part of thebuild
task), so that the metadata is available earlier on in the build process, and also when we're not building Storybook. I got rid of the wholespawnParams
concept because it's no longer relevant now that we're using@antfu/ni
.📦 Published PR as canary version:
7.3.0--canary.826.28d33af.0
✨ Test out this PR locally via: