Skip to content

Commit

Permalink
chore: update node to v20.10.0 and use dedicated release config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwaltz committed Dec 1, 2023
1 parent 45da626 commit 9ccbd00
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.1
20.10.0
57 changes: 46 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 2 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,6 @@
"files": [
"dist"
],
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "chore",
"scope": "deps",
"release": "patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
},
"scripts": {
"dev": "unbuild --stub",
"build": "unbuild",
Expand All @@ -85,9 +55,10 @@
"@graphql-codegen/typescript-operations": "^4.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "~18.17.19",
"@types/node": "~20.10.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
Expand Down
88 changes: 88 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/** @type {import('semantic-release').GlobalConfig} */
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{
type: 'chore',
scope: 'deps',
release: 'patch',
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
presetConfig: {
types: [
{
type: 'feat',
section: 'Features',
hidden: false,
},
{
type: 'fix',
section: 'Bug Fixes',
hidden: false,
},
{
type: 'perf',
section: 'Performance Improvements',
hidden: false,
},
{
type: 'revert',
section: 'Reverts',
hidden: false,
},
{
type: 'docs',
section: 'Documentation',
hidden: false,
},
{
type: 'style',
section: 'Styles',
hidden: false,
},
{
type: 'chore',
section: 'Miscellaneous Chores',
hidden: false,
},
{
type: 'refactor',
section: 'Code Refactoring',
hidden: false,
},
{
type: 'test',
section: 'Tests',
hidden: false,
},
{
type: 'build',
section: 'Build System',
hidden: false,
},
{
type: 'ci',
section: 'Continuous Integration',
hidden: false,
},
],
},
},
],
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
};

0 comments on commit 9ccbd00

Please sign in to comment.