Repository navigation
Releases: un-ts/changesets-gitlab
Release list
v0.17.0
Minor Changes
-
#272
c39c30dThanks @i1stG! - Added thechangesets-gitlab/changelogchangelog generator for Changesets. It links each entry to the corresponding GitLab merge request, commit and author, linkifies[#123](https://github.com/un-ts/changesets-gitlab/issues/123)issue and!123merge request references, and supports therepo,disableThanksandtemplateoptions like@changesets/changelog-github.{ "changelog": ["changesets-gitlab/changelog", { "repo": "group/project" }] }
v0.16.2
Patch Changes
- #269
5cfee82Thanks @i1stG! - Fixed Forward theGITLAB_TOKENauthentication to the Changesets CLI and to custom version/publish scripts. The CLI runsgit fetchitself (for example to deepen a shallow clone) and no longer fails withcould not read Username for 'https://…'when the CI remote URL is not authenticated (#268).
New Contributors
Full Changelog: v0.16.1...v0.16.2
v0.16.1
Patch Changes
- #265
4497447Thanks @utix! - Addtslibtodependencies. The compiled output importstslibat runtime (via theimportHelperstsconfig option), but it was missing frompackage.json, causingERR_MODULE_NOT_FOUND: Cannot find package 'tslib'when running vianpx.
New Contributors
Full Changelog: v0.16.0...v0.16.1
v0.16.0
Minor Changes
-
#259
bfe0398Thanks @JounQin! - Sync withchangesets/actionv2 (structure, behaviour and fixes).Breaking
- Inputs renamed to match upstream:
publish→publish-script,version→version-script,commit→commit-message,title→pr-title,target_branch→pr-base-branch. Set them through the underscore-normalizedINPUT_*variable; the old names now error with the variable to use (inputs whose variable is unchanged keep working) publishedPackagesoutput renamed topublished-packages- The split flow is now CLI commands (
select-mode,version,pack,publish) instead of GitHub sub-actions, pluspr-status/pr-comment.runPublish/runVersiontake agitlab: GitLabinstance andrunVersionreturnsRunVersionResult changeset versionis no longer run with its exit code ignored, so theversioncommand fails when there is nothing to version, like upstream's/versionsub-action
Added
pr-draft,create-gitlab-releases,push-git-tagsandpush-with-git-cliinputs; withpush-with-git-cli: falsethe release commit and tags are created through the GitLab API (viacommitChangesSinceBase, the@changesets/ghcommitcounterpart)has-changesetsandpr-numberoutputs; every output uses upstream'score.setOutput(native$GITHUB_OUTPUT, otherwise~/.changesets-gitlab.outputs)
Changed
- Use the exact tags reported by
CHANGESETS_OUTPUT, support the built-inchangeset publish(--from-pack-dir) and run custom scripts and callbacks through@actions/exec getChangelogEntryfollows upstream (1d54b9e): parse with a regex and return the raw changelog slice instead of re-serializing it throughremark, dropping theremark/unifieddependencies. It also recognizes~~~fences, keeping the edge case the previousremarkimplementation handled- The split
version/publishcommands readscriptlike the upstream sub-actions (falling back toversion-script/publish-script) pr-draftmirrors upstream:create/alwaysopen a new merge request as draft, and onlyalwaysconverts an existing one (GitLab marks drafts with aDraft:title prefix)- npm authentication is left to npm (Trusted Publishing/OIDC, otherwise
NODE_AUTH_TOKEN); removed the.npmrc/NPM_TOKENhandling - Git CLI authentication uses command-scoped
http.extraHeaderinstead of writing the token into.git/config;DEBUG_GITLAB_CREDENTIALnow only unsilences the auth remote lookup - All logging goes through
@actions/coreinstead ofconsole.*
Fixed
- Warn when a custom publish script does not produce
CHANGESETS_OUTPUT, and fail on malformed output - The empty-release-MR guard compares package versions, so it also works when the version command commits the changes
- Tag push failures warn (the tag may already exist), publish failures fail the job, and the
gitlab[bot]identity is only a fallback - Use fully-qualified refspecs for
git fetch/git pushso a branch or tag name cannot be interpreted as a git command option - Point the merge request status comment links at the current Changesets FAQ (
https://changesets.dev/faq) - Apply the input-migration guards to the split
version/publishcommands too, and forwardremove-source-branchfromversion - Detect an already-checked-out branch by exit code, create the comment API lazily so a
changeset-release*branch withoutGITLAB_TOKENstays a no-op, and resolvepublish-plan-pathagainstcwd - Keep paths with spaces or non-ASCII characters intact when committing through the GitLab API (
-zparsing)
- Inputs renamed to match upstream:
-
#262
1f81ba5Thanks @JounQin! - Breaking Drop CommonJS support, matching the ESM-onlychangesets/action: the package no longer ships arequire-able entry (lib/index.cjs/index.d.cts), and onlyimportis supported.
Patch Changes
-
#261
27143edThanks @JounQin! - FixedrunVersionresets thechangeset-release/*branch to the pipeline trigger commit (CI_COMMIT_SHA) instead of the latestorigin/${branch}tip, matchingchangesets/action. A delayed pipeline can no longer version changesets it never saw (#236). This makes theCI_COMMIT_SHA,CI_COMMIT_REF_NAMEandCI_PROJECT_IDenvironment variables required: GitLab CI injects them automatically, but other CI environments must set them explicitly. -
#264
4cb2261Thanks @JounQin! - Fixed Resolve the Changesets CLI from the package manager's global directory (npm/yarn/pnpm) as a fallback when it is not installed in the repository. A globally installedchangesets-gitlabno longer fails withHave you forgotten to install @changesets/cli(#125).
v0.15.1
v0.15.0
Minor Changes
-
#252
9e4fcecThanks @philibea! - Drop support for Changesets v2 and Node < 22. Bump all@changesets/*dependencies to v3 and@manypkg/get-packagesto v3.Breaking changes:
- Node engine requirement bumped from
>=18.0.0to^22.12 || ^24 || >=26to match Changesets v3 @changesets/*dependencies bumped to v3 versions, which are ESM-only@manypkg/get-packagesbumped to v3, changing thePackagesandPackagetypes (toolis now an object withtypeproperty,rootrenamed torootPackage,Packagenow requiresrelativeDir)
Bug fixes for Changesets v3 compatibility:
- Handle the new
changeset versionexit code 1 when no unreleased changesets exist - Detect published packages via the
CHANGESETS_OUTPUTenv var (NDJSON format) from Changesets v3 - Prevent creating empty release MRs when the version command produces no file changes — fall through to publish instead
- Use
ignoreReturnCode: trueon version and publish commands since v3 may exit non-zero in valid scenarios - Releases for a single-package (root) repository now consistently use a
v<version>tag, matching Changesets v3 output
- Node engine requirement bumped from
-
#220
15840f3Thanks @JounQin! - Refresh dependencies, including several major upgrades:@actions/corev2 → v3 and@actions/execv1 → v3@gitbeaker/restv42 → v43 — request error messages now include only the description contextcommanderv13 → v15 — now ESM-only and requires Node.js ≥ 22.12 (require(esm)); the deprecatedcommander/esm.mjsexport was removeddotenvv16 → v17global-agentv3 → v4p-limitv6 → v7
Minimum supported Node.js raised from
^22.11to^22.12to satisfycommanderv15'srequire(esm)support.This refresh also resolves security advisories in the runtime
qsdependency (via@gitbeaker/rest,qs6.15.3 → 6.16.0) and in the development-onlyvitest/@vitest/mockerandminimatchdependencies.Dev tooling majors were upgraded as well (
eslintv10,typescriptv6 / native preview,vitestv5,size-limitv14,@pkgr/rollupv7,npm-run-all2v9,nano-stagedv1).
New Contributors
Full Changelog: v0.14.0...v0.15.0
v0.14.0
Minor Changes
- #232
bb1bd87Thanks @bookchris! - feat: add an input to run at a subdirectory of the repo root
New Contributors
- @bookchris made their first contribution in #232
Full Changelog: v0.13.7...v0.14.0
v0.13.7
v0.13.6
Patch Changes
- #243
83b4ed8Thanks @erictheswift! - Fix changed package detection when one workspace directory prefixes another.
New Contributors
- @erictheswift made their first contribution in #243
Full Changelog: v0.13.5...v0.13.6
v0.13.5
Patch Changes
- #241
8d9cd84Thanks @maxkarkowski! - Upgrade@actions/coreto resolve security advisories in its Undici dependency.
New Contributors
- @maxkarkowski made their first contribution in #241
Full Changelog: v0.13.4...v0.13.5