@ipfs-shipyard/release-please-ipfs-plugin
v1.0.0
Published
A release-please helper plugin for IPFS repos. Initially created for IPFS-desktop
Downloads
155
Readme
@ipfs-shipyard/release-please-ipfs-plugin
A release-please helper plugin for IPFS repos. Initially created for IPFS-desktop
Table of contents
Install
$ npm i @ipfs-shipyard/release-please-ipfs-plugin
Introduction
Created when release-please was added to the IPFS Desktop repo.
NOTE: Other examples of release-please plugins were not available when this was created, so it may not be the best example of how to write a release-please plugin. Please let us know if you find a better way!
What it does
Modifies the changes in the PR created by release-please in the following ways:
- ipfs-desktop README.md updates - Update any text with the old-version tag to the new version, similar to https://github.com/ipfs/ipfs-desktop/blob/56a82179bd601a0051aab84792a3ed31bc0ec557/scripts/release/updateReadme.ts
How to use
Add to release-please config
{
// ...
"plugins": [/** ... */, "@ipfs-shipyard/release-please-ipfs-plugin"]
// ...
}
Ensure you call the release-please binary
NOTE: Simply adding to the release-please config is not enough to make it run. You must also call the release-please CLI with the plugin name.
release-please release-pr ... --plugin=@ipfs-shipyard/release-please-ipfs-plugin
This is the only way I found that a release-please plugin can actually load itself, so it can call registerPlugin
, so that the inner pluginFactories
can reference it when running.
Gotchas
- I have only tested this plugin with the
release-pr
command ofrelease-please
so far. It may not work with, or may break, other commands. - This plugin is currently focused on the needs of IPFS Desktop and may need to be updated to support other repos and use cases.
License
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.