ci: migrate to OIDC Trusted Publishing #13
+1,126
−590
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.
What problem are we solving?
22.xto resolve version mismatch errorid-token: writepermissions to allow for OIDC authenvironment: publishto enforce npmjs environment release securitysemantic-release/npmto v13.1.1 to comply with OIDC Trusted PublishingWhy solve it this way?
As classic npm tokens are being revoked as per npmjs notices, this PR is part of the overarching epic to migrate to using OIDC Trusted Publishing.
The addition of environments enforces custom branch deployment, ensuring that a random person can't just initiate a release.
The
releasebranch is used for releases, hence why the GitHub Environment was configured such that only pushes to this branch will trigger thepublishenvironment. see: PR in /infraTicket: DX-2083