Skip to content

Commit

Permalink
Merge branch 'master' of github.com:semantic-release/semantic-release…
Browse files Browse the repository at this point in the history
… into beta
  • Loading branch information
travi committed May 31, 2024
2 parents dfc3d91 + 5f05152 commit 2b77095
Show file tree
Hide file tree
Showing 5 changed files with 1,466 additions and 288 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
path: results.sarif
retention-days: 5
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
uses: github/codeql-action/upload-sarif@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
with:
sarif_file: results.sarif
15 changes: 13 additions & 2 deletions docs/usage/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Additionally, metadata of Git tags generated by **semantic-release** can be cust

**semantic-release**’s [options](#options), mode and [plugins](plugins.md) can be set via either:

- A `.releaserc` file, written in YAML or JSON, with optional extensions: `.yaml`/`.yml`/`.json`/`.js`/`.cjs`
- A `release.config.(js|cjs)` file that exports an object
- A `.releaserc` file, written in YAML or JSON, with optional extensions: `.yaml`/`.yml`/`.json`/`.js`/`.cjs`/`.mjs`
- A `release.config.(js|cjs|.mjs)` file that exports an object
- A `release` key in the project's `package.json` file

Alternatively, some options can be set via CLI arguments.
Expand Down Expand Up @@ -51,6 +51,17 @@ module.exports = {
};
```

- Via `release.config.mjs` file:

```js
/**
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: ["master", "next"],
};
```

- Via CLI argument:

```bash
Expand Down
Loading

0 comments on commit 2b77095

Please sign in to comment.