Skip to content

Commit

Permalink
fix: use new release.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andy.speirs committed Jan 18, 2024
1 parent caf1986 commit 47f63ac
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .releaserc

This file was deleted.

28 changes: 28 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* eslint-disable no-template-curly-in-string */
function isDryRun() {
return process.argv.includes('--dry-run');
}

const configProduction = [
['@semantic-release/npm', { npmPublish: false }],
['@semantic-release/git', {
assets: ['.version', 'package.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
}],
];

module.exports = {
branches: [
'main',
{ name: 'develop', prerelease: true },
{ name: 'next', prerelease: true },
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
...(isDryRun() ? [] : configProduction),
['@semantic-release/exec', {
verifyReleaseCmd: 'echo ${nextRelease.version} > .version',
}],
],
};

0 comments on commit 47f63ac

Please sign in to comment.