Skip to content

Commit

Permalink
chore: build dist release-please-action (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
google-github-actions-bot authored Sep 23, 2021
1 parent 9cd2fa8 commit 56e7d78
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async function main () {
const { token, fork, defaultBranch, apiUrl, repoUrl } = getGitHubInput()

const bumpMinorPreMajor = getBooleanInput('bump-minor-pre-major')
const bumpPatchForMinorPreMajor = getBooleanInput('bump-patch-for-minor-pre-major')
const monorepoTags = getBooleanInput('monorepo-tags')
const packageName = core.getInput('package-name')
const path = core.getInput('path') || undefined
Expand Down Expand Up @@ -135,6 +136,7 @@ async function main () {
token,
label: RELEASE_LABEL,
bumpMinorPreMajor,
bumpPatchForMinorPreMajor,
changelogPath,
changelogSections,
versionFile,
Expand Down Expand Up @@ -8501,7 +8503,7 @@ exports.withCustomRequest = withCustomRequest;

Object.defineProperty(exports, "__esModule", ({ value: true }));

const VERSION = "2.16.0";
const VERSION = "2.16.3";

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
Expand Down Expand Up @@ -9930,7 +9932,7 @@ const Endpoints = {
}
};

const VERSION = "5.10.0";
const VERSION = "5.10.4";

function endpointsToMethods(octokit, endpointsMap) {
const newMethods = {};
Expand Down Expand Up @@ -59819,12 +59821,13 @@ exports.CommitSplit = CommitSplit;
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RELEASE_PLEASE_MANIFEST = exports.RELEASE_PLEASE_CONFIG = exports.RELEASE_PLEASE = exports.GH_API_URL = exports.DEFAULT_LABELS = void 0;
exports.MAX_ISSUE_BODY_SIZE = exports.RELEASE_PLEASE_MANIFEST = exports.RELEASE_PLEASE_CONFIG = exports.RELEASE_PLEASE = exports.GH_API_URL = exports.DEFAULT_LABELS = void 0;
exports.DEFAULT_LABELS = ['autorelease: pending'];
exports.GH_API_URL = 'https://api.github.com';
exports.RELEASE_PLEASE = 'release-please';
exports.RELEASE_PLEASE_CONFIG = `${exports.RELEASE_PLEASE}-config.json`;
exports.RELEASE_PLEASE_MANIFEST = `.${exports.RELEASE_PLEASE}-manifest.json`;
exports.MAX_ISSUE_BODY_SIZE = 65536;
//# sourceMappingURL=constants.js.map

/***/ }),
Expand Down Expand Up @@ -60659,7 +60662,7 @@ class GitHub {
upstreamRepo: this.repo,
title: options.title,
branch: options.branch,
description: options.body,
description: options.body.slice(0, constants_1.MAX_ISSUE_BODY_SIZE),
primary: defaultBranch,
force: true,
fork: this.fork,
Expand Down Expand Up @@ -65397,27 +65400,27 @@ class Python extends release_pr_1.ReleasePR {
}));
const parsedPyProject = await this.getPyProject();
const pyProject = (parsedPyProject === null || parsedPyProject === void 0 ? void 0 : parsedPyProject.project) || ((_a = parsedPyProject === null || parsedPyProject === void 0 ? void 0 : parsedPyProject.tool) === null || _a === void 0 ? void 0 : _a.poetry);
let projectName = packageName.name;
if (pyProject) {
updates.push(new pyproject_toml_1.PyProjectToml({
path: this.addPath('pyproject.toml'),
changelogEntry,
version: candidate.version,
packageName: packageName.name,
}));
if (pyProject.name) {
updates.push(new python_file_with_version_1.PythonFileWithVersion({
path: this.addPath(`${pyProject.name}/__init__.py`),
changelogEntry,
version: candidate.version,
packageName: packageName.name,
}));
}
projectName = pyProject.name;
}
else {
logger_1.logger.warn(parsedPyProject
? 'invalid pyproject.toml'
: `file ${chalk.green('pyproject.toml')} did not exist`);
}
updates.push(new python_file_with_version_1.PythonFileWithVersion({
path: this.addPath(`${projectName}/__init__.py`),
changelogEntry,
version: candidate.version,
packageName: packageName.name,
}));
// There should be only one version.py, but foreach in case that is incorrect
const versionPyFilesSearch = this.gh.findFilesByFilename('version.py', this.path);
const versionPyFiles = await versionPyFilesSearch;
Expand Down Expand Up @@ -65633,14 +65636,17 @@ class Ruby extends release_pr_1.ReleasePR {
}
async buildUpdates(changelogEntry, candidate, packageName) {
const updates = [];
const versionFile = this.versionFile
? this.versionFile
: `lib/${packageName.name.replace(/-/g, '/')}/version.rb`;
updates.push(new changelog_1.Changelog({
path: this.addPath(this.changelogPath),
changelogEntry,
version: candidate.version,
packageName: packageName.name,
}));
updates.push(new version_rb_1.VersionRB({
path: this.addPath(this.versionFile),
path: this.addPath(versionFile),
changelogEntry,
version: candidate.version,
packageName: packageName.name,
Expand Down Expand Up @@ -86182,7 +86188,7 @@ module.exports = JSON.parse("[\"assert\",\"buffer\",\"child_process\",\"cluster\
/***/ ((module) => {

"use strict";
module.exports = {"i8":"11.23.0"};
module.exports = {"i8":"11.24.2"};

/***/ }),

Expand Down

0 comments on commit 56e7d78

Please sign in to comment.