fix: Reformat code so we can release

releases/v3
Tycho Bokdam 2021-10-05 23:14:01 +02:00
parent 5352e855d4
commit 0ba68212f4
No known key found for this signature in database
GPG Key ID: F1180857DB997467
5 changed files with 9 additions and 11 deletions

View File

@ -11,11 +11,11 @@ const conventionalChangelog = require('conventional-changelog')
* @returns {*}
*/
const getChangelogStream = (tagPrefix, preset, version, releaseCount, config) => conventionalChangelog({
preset,
releaseCount: parseInt(releaseCount, 10),
tagPrefix,
config
},
preset,
releaseCount: parseInt(releaseCount, 10),
tagPrefix,
config
},
{
version,
currentTag: `${tagPrefix}${version}`,

View File

@ -10,9 +10,7 @@ module.exports = class Git extends BaseVersioning {
return new Promise((resolve) => {
const tagPrefix = core.getInput('tag-prefix')
gitSemverTags({
tagPrefix,
}, async(err, tags) => {
gitSemverTags({ tagPrefix, }, async (err, tags) => {
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : null
// Get the new version

View File

@ -12,7 +12,7 @@ module.exports = class Json extends BaseVersioning {
* @param {!string} releaseType - The type of release
* @return {*}
*/
bump = async(releaseType) => {
bump = async (releaseType) => {
// Read the file
const fileContent = this.read()

View File

@ -13,7 +13,7 @@ module.exports = class Toml extends BaseVersioning {
* @param {!string} releaseType - The type of release
* @return {*}
*/
bump = async(releaseType) => {
bump = async (releaseType) => {
// Read the file
const fileContent = this.read()
const tomlContent = toml.parse(fileContent)

View File

@ -13,7 +13,7 @@ module.exports = class Yaml extends BaseVersioning {
* @param {!string} releaseType - The type of release
* @return {*}
*/
bump = async(releaseType) => {
bump = async (releaseType) => {
// Read the file
const fileContent = this.read()
const yamlContent = yaml.parse(fileContent) || {}