ci: switch NuGet and npm publishing to Trusted Publishing (OIDC) - #66
Open
Aragas wants to merge 3 commits into
Open
ci: switch NuGet and npm publishing to Trusted Publishing (OIDC)#66Aragas wants to merge 3 commits into
Aragas wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Switches NuGet and npm publishing from long-lived secrets to Trusted Publishing (GitHub OIDC).
publish.yml(NuGet): short-lived API key viaNuGet/login@v1instead ofNUGET_API_KEYpublish-native-ts.yml/publish-wasm.yml(npm): tokenlessnpm publishvia OIDC instead ofPUBLISH_NPM_TOKEN; the publish step now uses Node 22 + latest npm (trusted publishing requires npm >= 11.5.1). The GPR publish now uses the built-inGITHUB_TOKENinstead ofPUBLISH_GITHUB_TOKEN. Note: the wasm publish job remains disabled (if: false), unchanged.Before merging
Aragas) add a Trusted Publishing policy: Repository OwnerBUTR, RepositoryFetchBannerlordVersion, Workflow Filepublish.yml@butr/fetchbannerlordversion), Settings -> Trusted publisher: GitHub Actions, orgBUTR, repoFetchBannerlordVersion, workflowpublish-native-ts.yml(andpublish-wasm.ymlfor the wasm package if re-enabled)After a successful publish
NUGET_API_KEY,PUBLISH_NPM_TOKENandPUBLISH_GITHUB_TOKENsecrets from this repo🤖 Generated with Claude Code