Replies: 2 comments
-
Is there any way now to pass data from one stop to later steps? If a prepare step of a plugin returns a value, is that somehow accessible in the context of the publish step? |
Beta Was this translation helpful? Give feedback.
0 replies
-
As far as I'm aware - sharing data between steps is not possible. You could implement that with a function which uses a top level variable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a new plugin and trying to find a way to share data between steps
For example (assume
test
is a valid option for the plugin):By inspecting https://github.com/semantic-release/github/blob/5f173f2ac2c7cf35bb28feb6a373d3d29c4cdeb9/index.js#L19
I thought settings data on
pluginConfig
should be available in further steps but in my plugin itseems every step receive a "fresh"
pluginConfig
object (without any modifications from previous ones).So my questions are:
Beta Was this translation helpful? Give feedback.
All reactions