release-it
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -60,3 +60,3 @@ const util = require('./util'), | ||
}, | ||
task: sequence.bind(null, [tasks.push, tasks.pushTags]) | ||
task: tasks.push | ||
}, | ||
@@ -63,0 +63,0 @@ release: { |
@@ -112,5 +112,5 @@ const util = require('./util'), | ||
function push(remoteUrl, pushUrl) { | ||
function push(remoteUrl, pushUrl, version) { | ||
const repository = pushUrl || ''; | ||
return run(`git push ${repository}`).catch(err => { | ||
return run(`git push --tags ${config.isForce ? '--force ' : ''}${repository}`).catch(err => { | ||
log.error('Please make sure an upstream remote repository is configured for the current branch. Example commands:\n' + | ||
@@ -123,9 +123,2 @@ `git remote add origin ${remoteUrl}\n` + | ||
function pushTags(version, pushUrl) { | ||
const repository = pushUrl || ''; | ||
return run(`git push --follow-tags ${config.isForce ? '--force ' : ''}${repository}`).catch(() => { | ||
log.error(`Could not push tag(s). Does tag "${version}" already exist? Use --force to move a tag.`); | ||
}); | ||
} | ||
function getGithubClient(repo) { | ||
@@ -287,3 +280,2 @@ if(!_githubClient) { | ||
push, | ||
pushTags, | ||
getChangelog, | ||
@@ -290,0 +282,0 @@ getGithubToken, |
@@ -41,3 +41,3 @@ const path = require('path'), | ||
if(program in shell && typeof shell[program] === 'function') { | ||
if(program in shell && typeof shell[program] === 'function' && !forcedCmdRe.test(command)) { | ||
shell.config.silent = !config.isVerbose; | ||
@@ -44,0 +44,0 @@ cb(0, shell[program].apply(shell, programArgs)); |
@@ -100,3 +100,2 @@ const _ = require('lodash'), | ||
repo.push, | ||
repo.pushTags, | ||
repo.release, | ||
@@ -141,3 +140,2 @@ repo.uploadAssets, | ||
repo.push, | ||
repo.pushTags, | ||
repo.publish | ||
@@ -166,4 +164,3 @@ ) | ||
stageDir: git.stageDir, | ||
push: git.push.bind(null, config.getRuntimeOption('remoteUrl')), | ||
pushTags: git.pushTags.bind(null, version), | ||
push: git.push.bind(null, config.getRuntimeOption('remoteUrl'), null, version), | ||
popd: shell.popd | ||
@@ -193,4 +190,3 @@ } | ||
tag: git.tag.bind(null, version, options.src.tagName, options.src.tagAnnotation), | ||
push: git.push.bind(null, config.getRuntimeOption('remoteUrl'), options.src.pushRepo), | ||
pushTags: git.pushTags.bind(null, version, options.src.pushRepo), | ||
push: git.push.bind(null, config.getRuntimeOption('remoteUrl'), options.src.pushRepo, version), | ||
release: options.github.release ? git.release.bind(null, options, config.getRuntimeOption('remoteUrl'), options.src.tagName) : noop, | ||
@@ -197,0 +193,0 @@ uploadAssets: options.src.githubAssets ? git.uploadAssets.bind(null, options, config.getRuntimeOption('remoteUrl'), options.src.githubAssets) : noop, |
{ | ||
"name": "release-it", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "Interactive release tool for Git repositories. Increment version, commit, tag, push, build, publish to npm. Supports to build and release to a distribution/component repository.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47587
1123