Skip to content

Commit 9ccbd00

Browse files
committed
chore: update node to v20.10.0 and use dedicated release config
1 parent 45da626 commit 9ccbd00

4 files changed

Lines changed: 137 additions & 43 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17.1
1+
20.10.0

package-lock.json

Lines changed: 46 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,36 +30,6 @@
3030
"files": [
3131
"dist"
3232
],
33-
"release": {
34-
"branches": [
35-
"main"
36-
],
37-
"plugins": [
38-
[
39-
"@semantic-release/commit-analyzer",
40-
{
41-
"preset": "conventionalcommits",
42-
"releaseRules": [
43-
{
44-
"type": "chore",
45-
"scope": "deps",
46-
"release": "patch"
47-
}
48-
]
49-
}
50-
],
51-
[
52-
"@semantic-release/release-notes-generator",
53-
{
54-
"preset": "conventionalcommits"
55-
}
56-
],
57-
"@semantic-release/changelog",
58-
"@semantic-release/npm",
59-
"@semantic-release/git",
60-
"@semantic-release/github"
61-
]
62-
},
6333
"scripts": {
6434
"dev": "unbuild --stub",
6535
"build": "unbuild",
@@ -85,9 +55,10 @@
8555
"@graphql-codegen/typescript-operations": "^4.0.1",
8656
"@semantic-release/changelog": "^6.0.3",
8757
"@semantic-release/git": "^10.0.1",
88-
"@types/node": "~18.17.19",
58+
"@types/node": "~20.10.2",
8959
"@typescript-eslint/eslint-plugin": "^6.11.0",
9060
"@typescript-eslint/parser": "^6.11.0",
61+
"conventional-changelog-conventionalcommits": "^6.1.0",
9162
"eslint": "^8.53.0",
9263
"eslint-config-prettier": "^9.0.0",
9364
"eslint-plugin-prettier": "^5.0.1",

release.config.cjs

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/** @type {import('semantic-release').GlobalConfig} */
2+
module.exports = {
3+
branches: ['main'],
4+
plugins: [
5+
[
6+
'@semantic-release/commit-analyzer',
7+
{
8+
preset: 'conventionalcommits',
9+
releaseRules: [
10+
{
11+
type: 'chore',
12+
scope: 'deps',
13+
release: 'patch',
14+
},
15+
],
16+
},
17+
],
18+
[
19+
'@semantic-release/release-notes-generator',
20+
{
21+
preset: 'conventionalcommits',
22+
presetConfig: {
23+
types: [
24+
{
25+
type: 'feat',
26+
section: 'Features',
27+
hidden: false,
28+
},
29+
{
30+
type: 'fix',
31+
section: 'Bug Fixes',
32+
hidden: false,
33+
},
34+
{
35+
type: 'perf',
36+
section: 'Performance Improvements',
37+
hidden: false,
38+
},
39+
{
40+
type: 'revert',
41+
section: 'Reverts',
42+
hidden: false,
43+
},
44+
{
45+
type: 'docs',
46+
section: 'Documentation',
47+
hidden: false,
48+
},
49+
{
50+
type: 'style',
51+
section: 'Styles',
52+
hidden: false,
53+
},
54+
{
55+
type: 'chore',
56+
section: 'Miscellaneous Chores',
57+
hidden: false,
58+
},
59+
{
60+
type: 'refactor',
61+
section: 'Code Refactoring',
62+
hidden: false,
63+
},
64+
{
65+
type: 'test',
66+
section: 'Tests',
67+
hidden: false,
68+
},
69+
{
70+
type: 'build',
71+
section: 'Build System',
72+
hidden: false,
73+
},
74+
{
75+
type: 'ci',
76+
section: 'Continuous Integration',
77+
hidden: false,
78+
},
79+
],
80+
},
81+
},
82+
],
83+
'@semantic-release/changelog',
84+
'@semantic-release/npm',
85+
'@semantic-release/git',
86+
'@semantic-release/github',
87+
],
88+
};

0 commit comments

Comments
 (0)