Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@wtf/semantic-release-trains

Latest version: v9.2.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: mikaelkaron
23 Versions
12.0K Downloads

Scan summary

@wtf/semantic-release-trains was last scanned on 28 Nov 2026 at version 9.2.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 23 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 9.2.1.
  • Downloads: 12,038 downloads.

Versions

23 versions published
Versions and the rules that fired in each
VersionPublishedStatus
9.2.1 LATEST 28 Nov 2026 No rules fired
9.2.0 20 Nov 2026 No rules fired
9.1.2 19 Nov 2026 No rules fired
9.1.1 16 Nov 2026 Not shown
9.1.0 14 Nov 2026 Not shown

No rules fired in 9.2.1

Findings

Findings for v9.2.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 9.2.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@wtf/semantic-release-trains

Several release trains from one monorepo, with semantic-release alone. A train is a set of folders that is released together, with its own tags, version, release notes and changelog. A commit counts for each train whose files it changes, and for no other train.

  • No other tooling: an ordinary plugin of semantic-release, in an ordinary config that is yours.
  • Any plugin, any preset: an entry of the plugin of wrap gives the commits of the train to the plugin it wraps, as the commit analyzer, the release notes generator and the plugin of the host, with their options.
  • One package, of JSON options, listed once for each role, so a config of literals serves a global install of semantic-release, as the semantic-release component of to-be-continuous makes one.
  • Safe order: a train that depends on another train warns, or fails, when it would release against versions that are not released.
  • A thin adapter over @wtf/release-trains, the library, which runs on any platform its caller gives it, and the folder of the repo.

Install

npm install --save-dev semantic-release @wtf/semantic-release-trains \
  @semantic-release/changelog @semantic-release/git @semantic-release/gitlab

Use

Declare the trains once, at the root of the config: semantic-release gives each option of the root to every plugin. The train of a run is RELEASE_TRAIN of its environment, which each plugin reads, as a plugin of semantic-release reads a variable of its own; an option train of the root wins over it. Beside them, ecosystems, required, names the module of each ecosystem of the repo, as @wtf/release-npm, whose packages the trains read: each is loaded of the repo, as an entry of wrap loads the plugin it wraps, by its name, its path from the repo, or its file: URL (EECOSYSTEM of one that cannot be loaded, or is no ecosystem).

// release.config.mjs
import { BREAKING, trainChangelog, trainTagFormat } from '@wtf/semantic-release-trains/config'

const trains = {
  trains: {
    paths: ['packages/release-trains', 'packages/semantic-release-trains'],
    shared: ['pnpm-lock.yaml']
  },
  replace: {
    paths: ['packages/release-replace', 'packages/semantic-release-replace'],
    shared: ['pnpm-lock.yaml']
  }
}
const train = process.env.RELEASE_TRAIN
const preset = { preset: 'conventionalcommits' }

export default {
  trains,
  ecosystems: ['@wtf/release-npm'],
  tagFormat: trainTagFormat(trains, train),
  ...BREAKING,
  plugins: [
    ['@wtf/semantic-release-trains', { wrap: ['@semantic-release/commit-analyzer', preset] }],
    [
      '@wtf/semantic-release-trains',
      { wrap: ['@semantic-release/release-notes-generator', preset] }
    ],
    ['@semantic-release/changelog', { changelogFile: trainChangelog(trains, train) }],
    ['@semantic-release/git', { message: `chore(release): ${train} \${nextRelease.version}` }],
    ['@wtf/semantic-release-trains', { wrap: '@semantic-release/gitlab' }]
  ]
}
RELEASE_TRAIN=trains npx semantic-release
RELEASE_TRAIN=replace npx semantic-release

Each run releases one train, as this repo releases its packages: the tags trains-v4.0.0 and replace-v3.1.0, the changelogs packages/release-trains/CHANGELOG.md and packages/release-replace/CHANGELOG.md, and a release commit chore(release): trains 4.0.0.

The entries of the plugin

The plugin is one package, which a config lists once for each role, each entry where its role runs, as a config lists @semantic-release/exec once for each command. Each entry does its role alone, and every entry checks the trains, in verifyConditions, once a run:

Entry What it does
'@wtf/semantic-release-trains' Checks the train of the run, the trains, the tag format, overlapping paths, and the ranges on other trains
['@wtf/semantic-release-trains', { wrap: <plugin> }] The same, and gives the plugin it wraps the commits of the train, in each step it has; of an analyzer, the dependency trains checked first
['@wtf/semantic-release-trains', { generated: true }] The same, and stages the folders the train's build generates, in prepare, as each .generated lists them

An entry has one role at most: wrap and generated together fail with EOPTIONS, as each runs in a place of its own, the wrapped plugin where it reads the commits, and generated after the build that writes the folders.

An entry of wrap that wraps a notes generator takes heading: 'train': the first heading of the notes names the train before the rest of its line, as ## trains [4.0.0](…) (2026-11-02), of any generator, and notes of no heading are headed ## trains 4.0.0. None by default. See Changelogs.

Options of the train

A wrapped plugin also gets the options the train decides for it (TRAIN_OPTIONS of ./defaults). They go under the root's options and the entry's own, so whatever the config sets wins:

Plugin Options of the train
@semantic-release/changelog changelogFile, the train's changelog; changelogTitle, # Changelog
@semantic-release/git assets, of trainAssets; message, chore(release): <train> ${nextRelease.version}

A step can also get options the run decides as it runs (TRAIN_STEP_OPTIONS of ./defaults), under the config's options too. The release of the tag names each package the release published, as the plugins of npm, cargo, Go, Maven and OCI images of this repo record what they publish (@wtf/semantic-release/links), on the forge of the run:

  • @semantic-release/gitlab gets assets in publish: one link, of the type package and named by the package, to each package, by gitlabReleaseOptions of @wtf/semantic-release/gitlab;
  • @semantic-release/github gets releaseBodyTemplate in publish, its notes and then a section, ### Packages, of a link to each package, as a GitHub release has no links of its own, and assets, the file of each package of no page, which it uploads to the release, by githubReleaseOptions of @wtf/semantic-release/github.

Each package is linked by the first of these it has:

  1. its page at the version on a public registry: npm, crates.io, Maven Central, pkg.go.dev of a Go module the proxy fetched, Docker Hub or Quay of an OCI image;
  2. its page on a registry of the forge it was published to: a package registry of GitLab, of a project or of a group, or the container registry of the project, which GitLab's API finds after the publish, by the token of the run (GITLAB_TOKEN or GL_TOKEN, else CI_JOB_TOKEN); or GitHub Packages, of npm, Maven or ghcr.io, by GITHUB_TOKEN or GH_TOKEN;
  3. its file, as the tarball of an npm package of pack: on GitLab, uploaded to the generic package registry of the project, as the package of the train at the version of the release; on GitHub, an asset of the release;
  4. of a Go module the proxy was not asked of, its folder at its tag.

Nothing is uploaded to the markdown uploads of the project. A config that gives assets of its own, or of GitHub releaseBodyTemplate, gets those alone, and a release that recorded no package links none.

plugins: [
  ['@wtf/semantic-release-trains', { wrap: '@semantic-release/release-notes-generator' }],
  '@wtf/semantic-release-npm',
  // The GitLab release of the tag, linked to each package npm published; or, on GitHub,
  // ['@wtf/semantic-release-trains', { wrap: '@semantic-release/github' }].
  ['@wtf/semantic-release-trains', { wrap: '@semantic-release/gitlab' }]
]
Skipping a step

An entry of wrap skips a step of the plugin it wraps by the step's rule, in skip: each step of semantic-release, verifyConditions to fail, has its own. A rule is:

Rule Skips the step
true always
false never, over a rule the plugin has by default
'section' when the changelog has the section of the release already; ['section', { file }] names the file
a module, or a module and options when the default export of the module says so: (context, options) => boolean, of the repo or a package

A plugin has rules by default (TRAIN_SKIP of ./defaults), under the entry's own: @semantic-release/changelog skips prepare of 'section', so a release run again after a publish that failed writes no section twice.

plugins: [
  // The changelog's prepare skipped of 'section', by default.
  ['@wtf/semantic-release-trains', { wrap: '@semantic-release/changelog' }],
  // No comments on the merge requests of a release, and a check of the repo's own before publish.
  [
    '@wtf/semantic-release-trains',
    {
      wrap: '@semantic-release/gitlab',
      skip: { success: true, fail: true, publish: './release/released.mjs' }
    }
  ]
]

The context of a rule is the step, the options of the plugin, the train's under the config's, the release the run makes, and the folder of the repo, root, and the platform of the run, platform.

So the changelog and the release commit of a train take one line each:

plugins: [
  ['@wtf/semantic-release-trains', { wrap: '@semantic-release/changelog' }],
  ['@wtf/semantic-release-trains', { wrap: '@semantic-release/git' }]
]

On the train

semantic-release gives each plugin its own copy of the context of a run, with every commit of the repo since the train's last tag: no plugin can filter the commits of another. It releases by the highest type of release any analyzer returns, joins the notes of every generator, and the plugin of the host comments on the merge request of each commit when it succeeds. So wrap each plugin that reads the commits in an entry of wrap, which gives each of its steps the commits of the train alone, and list no commit analyzer or release notes generator unwrapped.

wrap names the plugin as an entry of plugins names one: its name alone, or its name and its options, as preset or releaseRules. The entry is JSON, which a config of literals, of no import, and a JSON config write as it is:

{
  "branches": ["main"],
  "ecosystems": ["@wtf/release-npm"],
  "trains": {
    "trains": { "paths": ["packages/release-trains", "packages/semantic-release-trains"] },
    "replace": { "paths": ["packages/release-replace", "packages/semantic-release-replace"] }
  },
  "plugins": [
    [
      "@wtf/semantic-release-trains",
      { "wrap": ["@semantic-release/commit-analyzer", { "preset": "conventionalcommits" }] }
    ],
    ["@wtf/semantic-release-trains", { "wrap": "@semantic-release/release-notes-generator" }],
    ["@wtf/semantic-release-trains", { "wrap": "@semantic-release/gitlab" }]
  ]
}
RELEASE_TRAIN=trains npx semantic-release --tag-format 'trains-v${version}'

A JSON config cannot write the tag format of the train: give it on the command line, or the run fails with ETAGFORMAT, as it would read the tags of another train. A config of literals writes it out, as `${process.env.RELEASE_TRAIN}-v\${version}`: see Configuring trains.

The wrapped plugin is given the options of the root of the config, as parserOpts of BREAKING, and its own over them, as semantic-release gives any plugin. The entry loads it as semantic-release does: of the plugins semantic-release depends on, as the commit analyzer and the release notes generator, in the node_modules of the semantic-release beside it, of a global install too; or else of the repo, which installs any other; or else beside this package, of a global install. The analyzer it wraps also checks the trains the train depends on, by dependencies of the root: warn, fail or ignore. By cascade of the root, true by default, it releases the train when a dependency train's last release is outside a range of a workspace: form that the train's last release published: at least a major of a peer that a major left, else a patch; and the notes generator it wraps has a section ### Dependencies of each after its notes. See Dependency rules.

semantic-release calls each step of the plugin of every entry. Of a step an entry has no role in, or the plugin it wraps has not, it gives what semantic-release takes as nothing: no type of release, no notes (''), and of publish and addChannel false, which semantic-release lists as a release of no name, of the plugin's; the plugins of the host, which list the releases of a run by their names, leave it out.

Exports

Export What it is
@wtf/semantic-release-trains The plugin (the default export), its steps, and the types of the options
@wtf/semantic-release-trains/config Values a config is written with: trainTagFormat, trainChangelog, trainAssets, trainOfTag, skipPlugins, stepId, BRANCHES, BREAKING
@wtf/semantic-release-trains/schema The validators of the options of its plugin, and of its part of a config; jsonSchema, its schema.json
@wtf/semantic-release-trains/errors The codes of its errors, PLUGIN_ERRORS
@wtf/semantic-release-trains/tag releaseTag, the release of a tag semantic-release made, by the plugins of the tag's run; its bin, semantic-release-trains-tag
@wtf/semantic-release-trains/info infoOf, dotenvOf and decideTrain: the next release of each train, for a build to inline; its bin, semantic-release-trains-info

./config adds no plugin: which plugins a run has, and in which order, is the config's.

The other plugins

Each other plugin is a package of its own, which a config names whole, and a global install of semantic-release installs by that name: @wtf/semantic-release-npm, every package of the train published; and, of no train, @wtf/semantic-release-replace, text replaced in files, as the version of the badge of a README, and @wtf/semantic-release-validate, the config validated.

From the tag

A two-step release publishes in the pipeline of the tag, not in semantic-release's run of the branch, by the same plugins: the config gives each run its own, by RELEASE_TAG, which semantic-release-trains-tag sets of the tag before it loads the config. semantic-release releases no tag it has, so the bin runs semantic-release's own config, plugins and branches, but its decision and its tag: the version is the tag's, the branch and channel those semantic-release released it on, of its note of the tag, and the notes those the notes generator writes again. Then the steps of the tag's plugins, verifyConditions to success.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @wtf/semantic-release-trains

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229