Skip to content

Commit

Permalink
Add gitlab.com support (#282)
Browse files Browse the repository at this point in the history
Closes #281
  • Loading branch information
bennypowers authored and sindresorhus committed Sep 17, 2018
1 parent 5d92365 commit a0bee56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/ui.js
Expand Up @@ -55,7 +55,8 @@ function printCommitLog(repositoryUrl) {
module.exports = options => {
const pkg = util.readPkg();
const oldVersion = pkg.version;
const repositoryUrl = pkg.repository && githubUrlFromGit(pkg.repository.url);
const extraBaseUrls = ['gitlab.com'];
const repositoryUrl = pkg.repository && githubUrlFromGit(pkg.repository.url, {extraBaseUrls});

console.log(`\nPublish a new version of ${chalk.bold.magenta(pkg.name)} ${chalk.dim(`(current: ${oldVersion})`)}\n`);

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -15,7 +15,7 @@
- Bumps the version in package.json and npm-shrinkwrap.json (if present) and creates a git tag
- Prevents [accidental publishing](https://github.com/npm/npm/issues/13248) of pre-release versions under the `latest` [dist-tag](https://docs.npmjs.com/cli/dist-tag)
- Publishes the new version to npm, optionally under a dist-tag
- Pushes commits and tags to GitHub
- Pushes commits and tags to GitHub/GitLab
- Supports [two-factor authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)


Expand Down

0 comments on commit a0bee56

Please sign in to comment.