Skip to content

Commit

Permalink
Fix pushing to uncommon Git hosts (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
futurist authored and itaisteinherz committed Aug 3, 2019
1 parent ab35fb9 commit c0dc3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = async (input = 'patch', options) => {
const pkgManagerName = options.yarn === true ? 'Yarn' : 'npm';
const rootDir = pkgDir.sync();
const hasLockFile = fs.existsSync(path.resolve(rootDir, options.yarn ? 'yarn.lock' : 'package-lock.json')) || fs.existsSync(path.resolve(rootDir, 'npm-shrinkwrap.json'));
const isOnGitHub = options.repoUrl && hostedGitInfo.fromUrl(options.repoUrl).type === 'github';
const isOnGitHub = options.repoUrl && (hostedGitInfo.fromUrl(options.repoUrl) || {}).type === 'github';

let isPublished = false;

Expand Down

0 comments on commit c0dc3a3

Please sign in to comment.