mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Edit missleading comment
This commit is contained in:
parent
42b51ab7b0
commit
4d038d61d0
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -280,7 +280,7 @@ function action(_actionName, params, core) {
|
||||||
const branch = params.branch.replace(/^refs\/heads\//, "");
|
const branch = params.branch.replace(/^refs\/heads\//, "");
|
||||||
const to_version = yield getPackageJsonVersion({ owner, repo, branch, github_token });
|
const to_version = yield getPackageJsonVersion({ owner, repo, branch, github_token });
|
||||||
if (to_version === undefined) {
|
if (to_version === undefined) {
|
||||||
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
|
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
|
||||||
}
|
}
|
||||||
core.debug(`Version on ${owner}/${repo}#${branch} is ${NpmModuleVersion_1.NpmModuleVersion.stringify(to_version)}`);
|
core.debug(`Version on ${owner}/${repo}#${branch} is ${NpmModuleVersion_1.NpmModuleVersion.stringify(to_version)}`);
|
||||||
const octokit = createOctokit_1.createOctokit({ github_token });
|
const octokit = createOctokit_1.createOctokit({ github_token });
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ export async function action(
|
||||||
const to_version = await getPackageJsonVersion({ owner, repo, branch, github_token });
|
const to_version = await getPackageJsonVersion({ owner, repo, branch, github_token });
|
||||||
|
|
||||||
if( to_version === undefined ){
|
if( to_version === undefined ){
|
||||||
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
|
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue