Skip to content

Commit

Permalink
fix: format and run CI on release
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacThoman committed Jan 6, 2025
1 parent e774d34 commit 905af05
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
module.exports = {
branches: [
'main',
{ name: 'dev', prerelease: 'beta' },
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/github',
{
successComment: false,
},
],
...(process.env.GITHUB_REF_NAME === 'main' ? [
[
'semantic-release-replace-plugin',
{
replacements: [
{
files: ['public/gameVersion.json'],
from: '"version": ".*"',
to: '"version": "${nextRelease.version}"',
countMatches: true,
},
],
},
],
[
'@semantic-release/git',
{
assets: ['public/gameVersion.json'],
message: 'chore: release ${nextRelease.version} [skip ci]',
},
],
] : []),
],
branches: [
'main',
{ name: 'dev', prerelease: 'beta' },
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/github',
{
successComment: false,
},
],
...(process.env.GITHUB_REF_NAME === 'main'
? [
[
'semantic-release-replace-plugin',
{
replacements: [
{
files: ['public/gameVersion.json'],
from: '"version": ".*"',
to: '"version": "${nextRelease.version}"',
countMatches: true,
},
],
},
],
[
'@semantic-release/git',
{
assets: ['public/gameVersion.json'],
message: 'chore: release ${nextRelease.version}',
},
],
]
: []),
],
};

0 comments on commit 905af05

Please sign in to comment.