Skip to content

ci: bump node version to 20 for ci workflows#161

Merged
lampajr merged 1 commit into
kiegroup:mainfrom
lampajr:release_it_upgrade
Sep 4, 2025
Merged

ci: bump node version to 20 for ci workflows#161
lampajr merged 1 commit into
kiegroup:mainfrom
lampajr:release_it_upgrade

Conversation

@lampajr

@lampajr lampajr commented Sep 4, 2025

Copy link
Copy Markdown
Member

Thank you for submitting this pull request

Hopefully fixes the following issue when preparing the release[1]:

Run next_version=$(npx release-it --release-version --no-git.requireCleanWorkingDir)
file:///home/runner/work/git-backporting/git-backporting/node_modules/release-it/lib/log.js:2
import { styleText } from 'node:util';
         ^^^^^^^^^
SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:191:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:106:12)

Node.js v18.20.8
Error: Process completed with exit code 1.

[1] https://github.com/kiegroup/git-backporting/actions/runs/17456538452/job/49571208930

As stated release-it/release-it#1219 we need at least node 20.12.0.

Checklist

  • Tests added if applicable.
  • Documentation updated if applicable.

Merge criteria:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Note: dist/cli/index.js and dist/gha/index.js are automatically generated by git hooks and gh workflows.

First time here?

This project follows git conventional commits pattern, therefore the commits should have the following format:

<type>(<optional scope>): <subject>
empty separator line
<optional body>
empty separator line
<optional footer>

Where the type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]

NOTE: if you are still in a work in progress branch and you want to push your changes remotely, consider adding --no-verify for both commit and push, e.g., git push origin <feat-branch> --no-verify - this could become useful to push changes where there are still tests failures. Once the pull request is ready, please amend the commit and force-push it to keep following the adopted git commit standard.

How to prepare for a new release?

There is no need to manually update package.json version and CHANGELOG.md information. This process has been automated in Prepare Release Github workflow.

Therefore whenever enough changes are merged into the main branch, one of the maintainers will trigger this workflow that will automatically update version and changelog based on the commits on the git tree.

More details can be found in package release section of the README.

Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
@github-actions

github-actions Bot commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 89.2% 504/565
🟢 Branches 85.33% 192/225
🟢 Functions 87.5% 112/128
🟢 Lines 89.05% 488/548

Test suite run success

217 tests passing in 18 suites.

Report generated by 🧪jest coverage report action from e74bde7

@lampajr lampajr merged commit c5ce1d4 into kiegroup:main Sep 4, 2025
6 checks passed
@lampajr lampajr deleted the release_it_upgrade branch September 4, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant