docs(Plugin Developer Guide): Update lifecycle list (#1874)

The old list was missing analyzeCommits lifecycle and the verification lifecycle was incorrectly listed as "verify", when it should currently be "verifyConditions" in order to properly load.
This commit is contained in:
Aki Mäkinen 2021-04-08 00:47:41 +03:00 committed by GitHub
parent 5489489dda
commit 72522c3570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,8 @@
To create a plugin for `semantic-release`, you need to decide which parts of the release lifecycle are important to that plugin. For example, it is best to always have a `verify` step because you may be receiving inputs from a user and want to make sure they exist. A plugin can abide by any of the following lifecycles: To create a plugin for `semantic-release`, you need to decide which parts of the release lifecycle are important to that plugin. For example, it is best to always have a `verify` step because you may be receiving inputs from a user and want to make sure they exist. A plugin can abide by any of the following lifecycles:
- `verify` - `analyzeCommits`
- `verifyConditions`
- `prepare` - `prepare`
- `publish` - `publish`
- `success` - `success`
@ -103,4 +104,4 @@ const { env } = context;
if (env.GITHUB_TOKEN) { if (env.GITHUB_TOKEN) {
//... //...
} }
``` ```