From b178c18fde49e822f7de3f38d098f0fd43c053be Mon Sep 17 00:00:00 2001 From: Francesco Vattiato Date: Thu, 28 Sep 2023 16:16:33 +0200 Subject: [PATCH] docs: Add release.config.cjs example with TypeScript definitions on docs/usage/configuration.md (#2950) Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com> Co-authored-by: Matt Travi --- docs/usage/configuration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/usage/configuration.md b/docs/usage/configuration.md index 92f7932b..b898a3ea 100644 --- a/docs/usage/configuration.md +++ b/docs/usage/configuration.md @@ -40,6 +40,17 @@ The following three examples are the same. } ``` +- Via `release.config.cjs` file: + +```js +/** + * @type {import('semantic-release').GlobalConfig} + */ +module.exports = { + branches: ["master", "next"], +}; +``` + - Via CLI argument: ```bash