Repository navigation
ci: publish to npm with trusted publishing (OIDC) - #23
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm trusted publishing
The org-level
NPM_TOKENsecret is gone, so releases now publish through npm trusted publishing (OIDC), followinglabd/commercetools-node-mock.releasejob:environment: release, withid-token: write,contents: writeandpull-requests: writeNPM_TOKEN; upgrades npm to^11.6.4(trusted publishing needs npm >= 11.5.1; pnpm 9 publishes through the npm CLI)changesets/actionv1.7.0 -> v2.1.2 (inputs renamed), withpush-with-git-cli: trueandNPM_CONFIG_PROVENANCE: truepackage.json: adds the missingrepository(git+https://github.com/labd/node-enviconf.git), which provenance checks need, and setspublishConfig.provenance: trueNot changed: the release job keeps
labd/gh-actions-typescript/pnpm-install@v1.0.0, which always caches the pnpm store. Switching tocache: falseneeds v1.1.0, which is too new for the 7-day pinact min-age.Before merging, add a trusted publisher on npmjs.com for
@labdigital/enviconf. Use repositorylabd/node-enviconf, workflowrelease.ymland environmentrelease.pnpm 12
packageManager→pnpm@12.12.0(from 9.15.3; pnpm 12 appliesminimumReleaseAgeto its own version, 12.12.0 is the newest 12.x older than 14 days)pnpm-workspace.yamlwithminimumReleaseAge: 20160(14 days). pnpm 12 also checks the existing lockfile against that policy, so currently locked versions younger than 14 days (vitest 5.0.5 + @vitest/*, rolldown 1.2.15 bindings, @oxc-project/types 0.155.0, postcss 8.5.31) are listed as exactname@versionentries inminimumReleaseAgeExclude; they can be dropped after 2026-11-04.allowBuilds: esbuild: false(its postinstall was already skipped before)pnpm-lock.yaml: only adds pnpm's ownpackageManagerDependenciesdocument, no dependency versions changedlabd/gh-actions-typescript/pnpm-install→ v1.1.0 (pnpm frompackageManager),cache: falsein the release job