Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.17 KB

20220925_releasescript_v3.md

File metadata and controls

38 lines (27 loc) · 1.17 KB

Update Release Script to v3

Version 3 of the release script is much more powerful, but also requires a few changes to your adapter:

Install the latest version and additional plugins:

npm i -D @alcalzone/release-script@latest @alcalzone/release-script-plugin-iobroker@latest @alcalzone/release-script-plugin-license@latest @alcalzone/release-script-plugin-manual-review@latest

Configure the release script to use the new plugins:

Add a new file .releaseconfig.json with the following contents:

{
	"plugins": ["iobroker", "license", "manual-review"]
}

These plugins will do the following:

  • Update io-package.json, including translating the news
  • Check the license to make sure it contains an up to date year
  • Ask you to review the automatically done changes before publishing

If your adapter uses TypeScript or React or something else that needs a build step, you can instruct the release script to execute this before committing the changes:

{
	"plugins": ["iobroker", "license", "manual-review"],
	"exec": {
		"before_commit": "npm run build"
	}
}

For more details on the changes, see https://github.com/AlCalzone/release-script