diff --git a/dist/index.js b/dist/index.js index 1473f88..7540727 100644 --- a/dist/index.js +++ b/dist/index.js @@ -280,7 +280,7 @@ function action(_actionName, params, core) { const branch = params.branch.replace(/^refs\/heads\//, ""); const to_version = yield getPackageJsonVersion({ owner, repo, branch, github_token }); 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)}`); const octokit = createOctokit_1.createOctokit({ github_token }); diff --git a/src/is_package_json_version_upgraded.ts b/src/is_package_json_version_upgraded.ts index 707b087..cccd242 100644 --- a/src/is_package_json_version_upgraded.ts +++ b/src/is_package_json_version_upgraded.ts @@ -44,7 +44,7 @@ export async function action( const to_version = await getPackageJsonVersion({ owner, repo, branch, github_token }); 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}`); }