-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
65 lines (60 loc) · 1.55 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// @ts-check
/* eslint-disable no-template-curly-in-string */
const preset = 'conventionalcommits'
/**
* @type {import('semantic-release').Options}
**/
const options = {
plugins: [
['@semantic-release/commit-analyzer', {preset}],
['@semantic-release/release-notes-generator', {preset}],
[
'@semantic-release/changelog',
{
changelogTitle: `<!-- markdownlint-disable --><!-- textlint-disable -->
# 📓 Changelog
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.`,
},
],
[
'@semantic-release/exec',
{
prepareCmd: 'npx -y prettier --write CHANGELOG.md',
},
],
[
'@semantic-release/npm',
{
tarballDir: '.semantic-release',
},
],
'semantic-release-license',
[
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'LICENSE',
'package-lock.json',
'package.json',
'pnpm-lock.yaml',
'yarn.lock',
],
message: 'chore(release): ${nextRelease.version} [skip ci]',
},
],
[
'@semantic-release/github',
{
addReleases: 'bottom',
assets: '.semantic-release/*.tgz',
// These features currently frequently leads to GitHub API rate limit errors, so we disable them for now.
releasedLabels: false,
// @TODO remove this before releasing on main
successComment: false,
},
],
],
}
module.exports = options