I am using the shareable config feature of semantic-release to create a re-usable configuration which will use the exec plugin to upload a file to S3. I would like the file path to include the name of the repository which creates the release and I am looking for a way to dynamically include the repository name in the plugin configuration:
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/github',
[
"@semantic-release/exec",
{
"publishCmd": "aws s3 cp release.zip s3://s3-bucket-name/$REPOSITORY_NAME/${nextRelease.version}/release.zip"
}
]
],
};
So I am specifically looking for a variable which I can use in place of $REPOSITORY_NAME
in the config above.
Is this possible? Does anyone know how to do this?