From 59cdc7976179acb4db905314e743fc3fdb7212ba Mon Sep 17 00:00:00 2001 From: cloud-sdk-js Date: Tue, 10 Sep 2024 16:42:53 +0000 Subject: [PATCH] v3.21.0 --- .../actions/changesets-fixed-version-bump/index.js | 11 +++++++++++ .github/actions/get-changelog/index.js | 11 +++++------ package.json | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/actions/changesets-fixed-version-bump/index.js b/.github/actions/changesets-fixed-version-bump/index.js index 49be0069e6..0e4c1fffb4 100644 --- a/.github/actions/changesets-fixed-version-bump/index.js +++ b/.github/actions/changesets-fixed-version-bump/index.js @@ -89065,16 +89065,22 @@ const git_1 = __nccwpck_require__(69674); const util_2 = __nccwpck_require__(50914); async function bump() { // before bump + (0, core_1.info)('Bumping version...'); const version = await (0, util_2.getNextVersion)(); + (0, core_1.info)(`Bumping to version ${version}`); process.env.NEXT_PACKAGE_VERSION = version; const beforeBumpScript = (0, core_1.getInput)('before-bump'); + (0, core_1.info)(`executing before script`); if (beforeBumpScript) { (0, execa_1.command)(beforeBumpScript); } + (0, core_1.info)(`updating root package.json`); await updateRootPackageJson(version); // TODO: what if I use pnpm? either pass the command or package manager? + (0, core_1.info)(`setting version`); (0, execa_1.command)('yarn changeset version'); // after bump + (0, core_1.info)(`executing after script`); const afterBumpScript = (0, core_1.getInput)('after-bump'); if (afterBumpScript) { (0, execa_1.command)(afterBumpScript); @@ -89092,9 +89098,14 @@ async function updateRootPackageJson(version) { } async function commitAndTag(version) { const cwd = process.cwd(); + (0, core_1.info)(`add`); await (0, git_1.add)('-A', cwd); + (0, core_1.info)(`commit`); await (0, git_1.commit)(`v${version}`, cwd); + (0, core_1.info)(`tag`); await (0, git_1.tag)(`v${version}`, cwd); + (0, core_1.info)(`push`); + await (0, execa_1.command)('git push'); // --follow-tags'); } bump(); diff --git a/.github/actions/get-changelog/index.js b/.github/actions/get-changelog/index.js index ea6bc47c69..5ffc63578f 100644 --- a/.github/actions/get-changelog/index.js +++ b/.github/actions/get-changelog/index.js @@ -31,13 +31,12 @@ function getChangelog(v) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getPackageVersion = void 0; -var fs_1 = __nccwpck_require__(7147); -var getPackageVersion = function (pathToRootPackageJson) { - return JSON.parse((0, fs_1.readFileSync)(pathToRootPackageJson || 'package.json', 'utf8')) - .version; -}; exports.getPackageVersion = getPackageVersion; +var fs_1 = __nccwpck_require__(7147); +function getPackageVersion(pathToRootPackageJson) { + var packageJson = (0, fs_1.readFileSync)(pathToRootPackageJson || 'package.json', 'utf8'); + return JSON.parse(packageJson).version; +} /***/ }), diff --git a/package.json b/package.json index 8134826420..2ec6d0f248 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sap-cloud-sdk", - "version": "3.20.0", + "version": "3.21.0", "private": true, "sideEffects": false, "packageManager": "yarn@1.22.18",