Add CI publish job for NuGet packages to CodeArtifact - #5
Merged
Faisal-Bahoo merged 2 commits intoAug 20, 2026
Merged
Conversation
Extends the existing CI workflow with a publish job that: - Runs only on push to main (after tests pass) - Authenticates via OIDC to the staging account - Checks if the version already exists before building - Packs SDK libraries + LambdaSharp.Tool - Pushes to CodeArtifact mindtouch-deki/cxe-nuget - Verifies the published version The publish job is idempotent — if the version in Scripts/set-lash-version.sh already exists in CodeArtifact, it skips with a warning annotation. Issues: #5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Faisal-Bahoo
marked this pull request as ready for review
August 20, 2026 18:52
NuGet restore needs CodeArtifact access for internal packages. Trust policy broadened to allow all refs (publish still gated to main by workflow condition). Co-Authored-By: Claude Opus 4.6 <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.
Summary
publishjobmain(after tests pass), authenticates via OIDC to the staging account (366391106850) and pushes NuGet packages to CodeArtifactmindtouch-deki/cxe-nugetScripts/set-lash-version.shis already published, the job skips with a warning annotation — prevents duplicate publishes and makes it clear when a version bump is needed--skip-duplicatein favor of failing loudly if an unexpected conflict occursPrerequisites (completed)
github-lambdasharp-publishcreated in account366391106850with OIDC trust forrepo:MindTouch/LambdaSharpTool:ref:refs/heads/maincxe-nugetrepository onlyAWS_ROLE_ARNset on MindTouch/LambdaSharpToolHow it works
publishjob only triggers on push tomain.nupkgfiles to CodeArtifactVersion workflow
Scripts/set-lash-version.sh): publishes new packagesTest plan
main— first run should detect0.8.5.1already exists and skip with warning0.8.5.2in a follow-up PR — merge should trigger actual publishdotnet tool install LambdaSharp.Tool --version 0.8.5.2works from CodeArtifactContext
Step 1 of the post-merge plan from PR #4 (Deki #38135). Next: update CD stage to re-add the LambdaSharp deploy step.
🤖 Generated with Claude Code