Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ed6213977 | ||
|
|
8051294ffd | ||
|
|
95a0456a85 | ||
|
|
038e640d5e | ||
|
|
f3f9d1ef58 |
@@ -46,9 +46,7 @@ async function run(context, plugins) {
|
|||||||
|
|
||||||
if (ciBranch !== options.branch) {
|
if (ciBranch !== options.branch) {
|
||||||
logger.log(
|
logger.log(
|
||||||
`This test run was triggered on the branch ${ciBranch}, while semantic-release is configured to only publish from ${
|
`This test run was triggered on the branch ${ciBranch}, while semantic-release is configured to only publish from ${options.branch}, therefore a new version won’t be published.`
|
||||||
options.branch
|
|
||||||
}, therefore a new version won’t be published.`
|
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,13 +45,6 @@ module.exports = async ({cwd, env, options: {repositoryUrl, branch}}) => {
|
|||||||
const envVar = Object.keys(GIT_TOKENS).find(envVar => !isNil(env[envVar]));
|
const envVar = Object.keys(GIT_TOKENS).find(envVar => !isNil(env[envVar]));
|
||||||
const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`;
|
const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`;
|
||||||
|
|
||||||
console.log(`-------- envVar -------- `);
|
|
||||||
console.log(envVar);
|
|
||||||
console.log(`-------- GIT_TOKENS[envVar] -------- `);
|
|
||||||
console.log(GIT_TOKENS[envVar]);
|
|
||||||
console.log(`-------- env[envVar].substr(5) -------- `);
|
|
||||||
console.log((env[envVar] || '').substr(5));
|
|
||||||
|
|
||||||
if (gitCredentials) {
|
if (gitCredentials) {
|
||||||
// If credentials are set via environment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is
|
// If credentials are set via environment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is
|
||||||
const [match, auth, host, path] = /^(?!.+:\/\/)(?:(.*)@)?(.*?):(.*)$/.exec(repositoryUrl) || [];
|
const [match, auth, host, path] = /^(?!.+:\/\/)(?:(.*)@)?(.*?):(.*)$/.exec(repositoryUrl) || [];
|
||||||
|
|||||||
+10
-2
@@ -3,6 +3,14 @@
|
|||||||
"description": "Automated semver compliant package publishing",
|
"description": "Automated semver compliant package publishing",
|
||||||
"version": "0.0.0-development",
|
"version": "0.0.0-development",
|
||||||
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
|
||||||
|
"ava": {
|
||||||
|
"files": [
|
||||||
|
"test/**/*.test.js"
|
||||||
|
],
|
||||||
|
"helpers": [
|
||||||
|
"test/helpers/**/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"semantic-release": "bin/semantic-release.js"
|
"semantic-release": "bin/semantic-release.js"
|
||||||
},
|
},
|
||||||
@@ -27,7 +35,7 @@
|
|||||||
"aggregate-error": "^3.0.0",
|
"aggregate-error": "^3.0.0",
|
||||||
"cosmiconfig": "^5.0.1",
|
"cosmiconfig": "^5.0.1",
|
||||||
"debug": "^4.0.0",
|
"debug": "^4.0.0",
|
||||||
"env-ci": "^3.0.0",
|
"env-ci": "^4.0.0",
|
||||||
"execa": "^1.0.0",
|
"execa": "^1.0.0",
|
||||||
"figures": "^3.0.0",
|
"figures": "^3.0.0",
|
||||||
"find-versions": "^3.0.0",
|
"find-versions": "^3.0.0",
|
||||||
@@ -47,7 +55,7 @@
|
|||||||
"yargs": "^13.1.0"
|
"yargs": "^13.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "^1.3.1",
|
"ava": "^2.0.0",
|
||||||
"clear-module": "^3.0.0",
|
"clear-module": "^3.0.0",
|
||||||
"codecov": "^3.0.0",
|
"codecov": "^3.0.0",
|
||||||
"commitizen": "^3.0.0",
|
"commitizen": "^3.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user