GabeDuarteM / semantic-release-chrome

Set of semantic-release plugins for publishing a Chrome extension release
https://www.npmjs.com/package/semantic-release-chrome
MIT License
43 stars 16 forks source link

FR: Define some common lodash templates for asset naming #82

Closed melink14 closed 2 years ago

melink14 commented 3 years ago

FR: Define some common lodash templates for asset namin

What you did and problem description

I would like to include version number in my zip file asset (since it will also be published to github) but depending on the environment that's not easy to do. (ex extensionname_v1.1.1.zip

What happened

Right now it doesn't support templating so I got extensionname_${nextRelease.version}.zip as the file name.

Suggested solution

I think supporting lodash templates like many of the other semantic relaese plugins should be easy enough: Here's an example from git plugin: https://github.com/semantic-release/git/blob/11ef559f896fa110dfe9606cfab52e0b47ed48b4/lib/prepare.js#L65

melink14 commented 3 years ago

This is less important for me since I saw github extension takes a separate name argument which allows using lodash templates.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: