Skip to content

Conversation

@mvantellingen
Copy link
Member

@mvantellingen mvantellingen commented Nov 30, 2025

This pull request introduces several improvements to the release process, dependency management, and CI/CD workflows for the @labdigital/commercetools-mock package. The main goals are to enhance security, ensure compatibility with newer Node.js versions, and adopt trusted publishing practices.

Release Process & Security Improvements:

  • Updated the release process to use trusted publishing, including provenance support and changes to environment variables and permissions in the CI/CD workflow (.github/workflows/ci-cd.yaml, package.json). [1] [2] [3] [4]
  • Updated various dependencies to resolve potential security issues, including both production and development dependencies (package.json). [1] [2]

CI/CD Workflow Enhancements:

  • Updated the Node.js version matrix in the CI/CD workflow to test against Node.js 20.x, 22.x, and 24.x, dropping support for 18.x (.github/workflows/ci-cd.yaml).
  • Added permissions for id-token and contents in the publish job to support trusted publishing (.github/workflows/ci-cd.yaml).
  • Set NPM_CONFIG_PROVENANCE to true and removed the use of NPM_TOKEN for publishing, aligning with trusted publishing requirements (.github/workflows/ci-cd.yaml).

pnpm Workspace Configuration:

  • Added new fields to pnpm-workspace.yaml to enforce a minimum release age, trust policy, and specify only built dependencies.

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

🦋 Changeset detected

Latest commit: 9fb9f0e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mvantellingen mvantellingen force-pushed the feature/trusted-packages branch from f3819af to 79a78f1 Compare November 30, 2025 06:40
@mvantellingen mvantellingen force-pushed the feature/trusted-packages branch 2 times, most recently from 0bb27a1 to d425b43 Compare November 30, 2025 07:18
Replace the `~src/` with node’s native subpath alias `#src/`
@mvantellingen mvantellingen force-pushed the feature/trusted-packages branch from d425b43 to 9fb9f0e Compare November 30, 2025 07:19
@mvantellingen mvantellingen merged commit cfbc4ac into main Nov 30, 2025
11 checks passed
@mvantellingen mvantellingen deleted the feature/trusted-packages branch November 30, 2025 07:22
@github-actions github-actions bot mentioned this pull request Nov 30, 2025
mvantellingen pushed a commit that referenced this pull request Nov 30, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @labdigital/commercetools-mock@2.61.0

### Minor Changes

- [#347](#347)
[`c7683d2`](c7683d2)
Thanks [@tleguijt](https://github.com/tleguijt)! - Add removeQuantity
action for inventory entries

### Patch Changes

- [#350](#350)
[`cfbc4ac`](cfbc4ac)
Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update
release process to use trusted publishing

- [#352](#352)
[`93cebc5`](93cebc5)
Thanks [@mvantellingen](https://github.com/mvantellingen)! - Update
build process for the docker version

- [#350](#350)
[`cfbc4ac`](cfbc4ac)
Thanks [@mvantellingen](https://github.com/mvantellingen)! - update
various depdendencies to resolve potential security issues

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants