Skip to content

Commit

Permalink
fix: Reformat code so we can release
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Oct 5, 2021
1 parent 5352e85 commit 0ba6821
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/helpers/generateChangelog.js
Expand Up @@ -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}`,
Expand Down
4 changes: 1 addition & 3 deletions src/version/git.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/version/json.js
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion src/version/toml.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/version/yaml.js
Expand Up @@ -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) || {}
Expand Down

0 comments on commit 0ba6821

Please sign in to comment.