Skip to content

Commit

Permalink
feat(release): update perform cmd commands (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDO authored Apr 23, 2024
1 parent f44f17a commit af8445c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
const path = require('path');

/**
* Shall be run in dry-run mode for preparing version and replacing next release function
* Prepare
* @description Step 1. Shall be run in dry-run mode for preparing version and replacing next release function
*/
const prepare = [
[
path.join(__dirname, 'release', 'index.js'),
],
[
'@semantic-release/exec',
{
analyzeCommitsCmd: 'echo "minor"',
generateNotesCmd: 'echo "chore: bump version"'
},
],
]

/**
* Shall be run not in dry-run mode. After override, next release version
* @description Prepare step will be executed only in semantic-release prod mode
* Perform
* @description Step 2. Shall be run not in dry-run mode. After override, next release version
* Prepare step will be executed only in semantic-release prod mode
*/
const perform = [
[
'@semantic-release/exec',
{
analyzeCommitsCmd: 'echo "minor"',
generateNotesCmd: 'echo "chore: bump version"',
prepareCmd: 'npm version ${nextRelease.version} --silent' // Set tag for semantic getLatestRelease function correctly workflow
},
],
Expand Down

0 comments on commit af8445c

Please sign in to comment.