Disable automatic semantic release
By default, this template repository includes the semantic-release
package to automatically create releases in GitHub once a push or pull request is merged into the
main
branch.
You may or may not want to disable semantic-release
for the following reasons:
semantic-release
- You want to manually release in line with your application's release cycle and match the application's versioning.
- Releases are not necessary at all for your docs. In this case, you can remove it completely and only maintain version control in GitHub.
semantic-release
- Since Docusaurus handles all docs versioning, it should not normally be necessary to release manually to match your application release cycle.
- Locking the release of the docs to the application makes it more difficult to amend versions after
the fact.
With
semantic-release
, the releases are more flexible and relies on Docusaurus versioning for different application versions.
Disable semantic-release
Remove
semantic-release
frompackage.json
:npm uninstall @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator
Delete the
semantic-release
configuration file:rm .releaserc.js
Set the default value for the
release.yaml
action tofalse
:release.yamlinputs:
semantic_release:
description: "whether to use semantic-release"
required: false
default: false(Optional) You can also remove the
release.yaml
workflow entirely if you don't need it.