Skip to content

1060548: Including release yml file in blazor-toolkit branch in fork. - #102

Merged
Indhumathy-Loganathan merged 1 commit into
syncfusion:mainfrom
JafarAli3783:1060548-templates
Oct 15, 2026
Merged

Indhumathy-Loganathan merged 1 commit into
syncfusion:mainfrom
JafarAli3783:1060548-templates

Conversation

@JafarAli3783

Copy link
Copy Markdown
Contributor

Summary

Adds a new release.yml workflow to .github/workflows/ that automates the post-merge release pipeline for the Syncfusion Blazor Toolkit (Syncfusion.Blazor.Toolkit NuGet package). The workflow runs on release: published, re-executes the existing CI security gates (bUnit, Playwright, NuGet vulnerability scan), packs the library for net8.0 / net9.0 / net10.0, generates CycloneDX and SPDX SBOMs, signs each .nupkg with a code-signing certificate from a repo secret, produces a SLSA build provenance attestation, pushes the signed packages to GitHub Packages, and attaches the signed .nupkg files plus both SBOMs to the GitHub Release as release assets.

This is a workflow-only change — no source, library, test, sample, API, or template changes are included. No public surface is altered.

Key Changes

  • New file: .github/workflows/release.yml
  • Triggers on release: published (i.e. after a maintainer manually publishes the GitHub Release), plus workflow_dispatch for manual re-runs.
  • Concurrency group keyed on the release tag (nuget-publish-${{ github.event.release.tag_name }}) so a re-publish of the same tag does not race a sibling in-flight run.
  • Re-runs the three security gates from ci.yml (bunit, playwright, vulnerability-scan) on .NET 10.0.x to gate the release pipeline.
  • Validates tag_name matches vX.Y.Z[-suffix], fails fast on malformed tags.
  • Bumps in src/Syncfusion.Blazor.Toolkit.csproj via sed so a manual dotnet pack against the same checkout reproduces the same .nupkg.
  • Packs with -p:RepositoryCommit=${PACK_REPO_COMMIT} -p:ContinuousIntegrationBuild=true so the produced .nuppec records the exact source SHA, matching the existing ci.yml Pack job and the Directory.Build.props wire-up.
  • Extracts an embedded CycloneDX SBOM from the packed .nupkg (the build target _GenerateCycloneDxSbom in Directory.Build.targets already injects one); falls back to a fresh dotnet CycloneDX invocation if no embedded SBOM is found.
  • Generates a SPDX 2.2 SBOM via Microsoft.Sbom.Tool for the same packages.
  • Signing is required: the workflow fails fast if either NUGET_SIGNING_CERT_BASE64 or NUGET_SIGNING_CERT_PASSWORD is missing. Signs each .nupkg with dotnet nuget sign, timestamping via http://timestamp.digicert.com. The certificate is base64-decoded to a one-shot .pfx file on the runner and destroyed immediately after use (shred -u on Linux, rm -f fallback).
  • Verifies every signed package with dotnet nuget verify --all before publishing; the job fails if any package does not verify.
  • Generates a SLSA build provenance attestation via actions/attest-build-provenance@v2 over the signed .nupkg files.
  • Pushes the signed packages to GitHub Packages (https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json) using GITHUB_TOKEN and --skip-duplicate for idempotent re-runs.
  • Uploads the signed .nupkg files + both SBOMs as release assets to the existing GitHub Release via softprops/action-gh-release@v2.
  • No other files modified. ci.yml, codeql.yml, SECURITY.md, THREAT-MODEL.md, Directory.Build.props, Directory.Build.targets, and the entire src/, tests/, and samples/ trees are untouched.

Migration Notes (consumer-facing)

  • No consumer-facing changes. This PR adds an internal release automation workflow only. The public Syncfusion.Blazor.Toolkit NuGet package ID, version, contents, target frameworks, API surface, and dependency closure are unchanged. Applications consuming the package do not need any action, code change, dependency bump, or configuration update.
  • Not source-incompatible with any previously published version.
  • Not binary-incompatible — the produced .nupkg is identical except for the version field.
  • Existing 1.0.2 / 2.0.0 (or any prior) consumer code: no review required.
  • Theme-emission behavior, CSS isolation, namespace unification, SfThemeRoot placement, @using Syncfusion.Blazor.Toolkit imports, IList / List usage, DataAdaptor constraints — all unchanged. No consumer-side review required for any of these.
  • NuGet.org consumers: this release pipeline targets GitHub Packages in addition to (or instead of) NuGet.org. Consumers installing from https://api.nuget.org/v3/index.json are unaffected; consumers who choose to consume from GitHub Packages need a read-only GitHub PAT with the read:packages scope and the https://nuget.pkg.github.com/syncfusion/index.json source registered once.

Validation

  • Library builds for net8.0 / net9.0 / net10.0
  • No unexpected tracked asset diffs after theme generation

@Indhumathy-Loganathan
Indhumathy-Loganathan merged commit dec596a into syncfusion:main Oct 15, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants