Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix(tweaks): start docs slowly ;d trying semantic-release-app deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 14, 2017
1 parent 77ef2fd commit def5c49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ Released under the [Apache-2.0 License][license-url].
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on November 14, 2017._
_Project scaffolded and managed with [hela][]._

[hela]: https://github.com/tunnckoCore/hela
[semantic-release]: https://github.com/semantic-release/semantic-release

<!-- Heading badges -->
[npmv-url]: https://www.npmjs.com/package/new-release
[npmv-img]: https://img.shields.io/npm/v/new-release.svg?label=npm%20version
Expand Down Expand Up @@ -181,5 +184,3 @@ _Project scaffolded and managed with [hela][]._
[highlighted-link]: https://ghub.now.sh/execa
[author-link]: https://i.am.charlike.online

[hela]: https://github.com/tunnckoCore/hela
[semantic-release]: https://github.com/semantic-release/semantic-release
11 changes: 11 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const getPkg = require('get-pkg')
const parseGitLog = require('parse-git-log')
const detectNext = require('detect-next-version')

/**
*
* @param {*} dir
*/

module.exports = async function newRelease (dir) {
const commits = await parseGitLog.promise(dir)

Expand All @@ -23,6 +28,12 @@ module.exports = async function newRelease (dir) {
return getNextVersion(increment, cwd)
}

/**
*
* @param {*} increment
* @param {*} cwd
*/

async function getNextVersion (increment, cwd) {
const name = path.basename(cwd)
const pkgJson = await util.promisify(getPkg)(name)
Expand Down

0 comments on commit def5c49

Please sign in to comment.