Issue
I want to do something like this,
["@semantic-release/exec", {
"prepareCmd": "echo hello ${HOME};"
}],
And then run this CI job with an environmental variable? Is there a method of making this work in semantic-release?
Solution
Use .releaserc.js
, or release.config.js
You can rename the releaserc.json
to release.config.js
or .releaserc.js`, and then it's just a CommonJS module,
const greets = "HELLO ";
module.exports = {
"foo": `${greets} ${process.title}`
}
That will run as expected.
Internally semantic-release uses cosmiconfig
Answered By - Evan Carroll Answer Checked By - Gilberto Lyons (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.