commit
df5882156b
|
@ -11,11 +11,11 @@ const conventionalChangelog = require('conventional-changelog')
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
const getChangelogStream = (tagPrefix, preset, version, releaseCount, config) => conventionalChangelog({
|
const getChangelogStream = (tagPrefix, preset, version, releaseCount, config) => conventionalChangelog({
|
||||||
preset,
|
preset,
|
||||||
releaseCount: parseInt(releaseCount, 10),
|
releaseCount: parseInt(releaseCount, 10),
|
||||||
tagPrefix,
|
tagPrefix,
|
||||||
config
|
config
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
version,
|
version,
|
||||||
currentTag: `${tagPrefix}${version}`,
|
currentTag: `${tagPrefix}${version}`,
|
||||||
|
|
|
@ -10,9 +10,7 @@ module.exports = class Git extends BaseVersioning {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const tagPrefix = core.getInput('tag-prefix')
|
const tagPrefix = core.getInput('tag-prefix')
|
||||||
|
|
||||||
gitSemverTags({
|
gitSemverTags({ tagPrefix, }, async (err, tags) => {
|
||||||
tagPrefix,
|
|
||||||
}, async(err, tags) => {
|
|
||||||
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : null
|
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : null
|
||||||
|
|
||||||
// Get the new version
|
// Get the new version
|
||||||
|
|
|
@ -12,7 +12,7 @@ module.exports = class Json extends BaseVersioning {
|
||||||
* @param {!string} releaseType - The type of release
|
* @param {!string} releaseType - The type of release
|
||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
bump = async(releaseType) => {
|
bump = async (releaseType) => {
|
||||||
// Read the file
|
// Read the file
|
||||||
const fileContent = this.read()
|
const fileContent = this.read()
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = class Toml extends BaseVersioning {
|
||||||
* @param {!string} releaseType - The type of release
|
* @param {!string} releaseType - The type of release
|
||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
bump = async(releaseType) => {
|
bump = async (releaseType) => {
|
||||||
// Read the file
|
// Read the file
|
||||||
const fileContent = this.read()
|
const fileContent = this.read()
|
||||||
const tomlContent = toml.parse(fileContent)
|
const tomlContent = toml.parse(fileContent)
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = class Yaml extends BaseVersioning {
|
||||||
* @param {!string} releaseType - The type of release
|
* @param {!string} releaseType - The type of release
|
||||||
* @return {*}
|
* @return {*}
|
||||||
*/
|
*/
|
||||||
bump = async(releaseType) => {
|
bump = async (releaseType) => {
|
||||||
// Read the file
|
// Read the file
|
||||||
const fileContent = this.read()
|
const fileContent = this.read()
|
||||||
const yamlContent = yaml.parse(fileContent) || {}
|
const yamlContent = yaml.parse(fileContent) || {}
|
||||||
|
|
Loading…
Reference in New Issue