Skip to content

Modernize workflow caching and cleanup - #1076

Merged
KevinJump merged 1 commit into
v17/mainfrom
chore/workflow-modernization
Sep 8, 2026
Merged

Modernize workflow caching and cleanup#1076
KevinJump merged 1 commit into
v17/mainfrom
chore/workflow-modernization

Conversation

@KevinJump

Copy link
Copy Markdown
Owner

Summary

Stacked on #1074 (adds this on top of the already-fixed package-build.yml).

  • package-build.yml: add actions/setup-node@v4 (pinned to Node 24, cache: npm keyed on usync-assets/package-lock.json) before the npm ci/npm run build steps. Previously there was no Node setup step at all — builds relied on whatever Node version happened to be preinstalled on the windows-latest runner image, unpinned and with no dependency cache.
  • Both workflows: added a concurrency group so a new push/PR update cancels a superseded in-flight run instead of letting it finish and queuing behind it — same pattern already applied to the CodeQL workflow.
  • dotnet-build.yml: dropped the unused pull-requests: write permission (nothing in the workflow writes to a PR) and the dead out_folder env var (same unused-variable pattern that was fixed in package-build.yml).

Note on concurrency + nightly publish

package-build.yml's concurrency group can cancel an in-flight nightly-feed publish if another push lands on v17/main before it finishes. Each run publishes under a unique nightly_version (build number), so a cancelled run just means that specific nightly build doesn't make it to the feed — no partial/corrupt package state. Flagging it in case that trade-off isn't wanted.

Test plan

  • Validated both workflow YAML files parse correctly
  • Confirm npm ci cache hits on the next nightly build run

🤖 Generated with Claude Code

package-build.yml: add actions/setup-node@v4 with npm caching before the
npm ci/build steps - previously there was no Node setup at all, so builds
relied on whatever Node version happened to be preinstalled on the
windows-latest image, unpinned and uncached.

Both workflows: add a concurrency group so superseded runs on the same
PR/branch get cancelled instead of queuing up.

dotnet-build.yml: drop the unused pull-requests: write permission (nothing
in the workflow writes to a PR) and the dead out_folder env var (same
unused-var pattern fixed in package-build.yml previously).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Base automatically changed from fix/package-build-workflow to v17/main September 8, 2026 12:48
@KevinJump
KevinJump merged commit 3b67219 into v17/main Sep 8, 2026
@KevinJump KevinJump mentioned this pull request Sep 8, 2026
5 tasks
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.

1 participant