Skip to content

Add v1.0.0 release automation with complete self-hosted ZIP + curated release notes - #1

Merged
Noble-Effeciency13 merged 3 commits into
mainfrom
copilot/create-first-release-v100
Aug 30, 2026
Merged

Noble-Effeciency13 merged 3 commits into
mainfrom
copilot/create-first-release-v100

Conversation

Copilot AI commented Aug 30, 2026 •

Copy link
Copy Markdown

Summary

  • Establishes production release plumbing for v1.0.0: CI now builds and publishes a deploy-ready ZIP asset, and release creation uses curated notes instead of autogenerated text.

  • Ensures the release artifact matches self-hosting expectations in the README (download, extract, edit config.js, host static files; no build required).

  • Release packaging

    • Workflow now stages a dedicated package directory, copies dist/ plus required deploy/reference files, and zips as entra-extensions-manager-${tag}.zip.
    • Included files: built app, config.js, README.md, LICENSE, staticwebapp.config.json, .env.example.
  • Release notes source

    • Added versioned notes file: .github/release-notes/v1.0.0.md.
    • Workflow publishes these notes on create and updates them on subsequent uploads for the same tag.
  • Workflow hardening

    • Added explicit release-notes preparation step with a safe fallback note when a tag-specific file is absent.
- name: Package release asset
  run: |
    tag="${{ github.event.inputs.tag || github.ref_name }}"
    asset="entra-extensions-manager-${tag}.zip"
    mkdir -p release-package
    cp -R dist/. release-package/
    cp public/config.js release-package/config.js
    cp README.md LICENSE staticwebapp.config.json .env.example release-package/
    (cd release-package && zip -r "../${asset}" .)

Validation

  • npm run lint
  • npm run test
  • npm run build

Checklist

  • Documentation updated, if needed.
  • CHANGELOG.md updated for user-facing changes.
  • Screenshots or recordings included for UI changes.
  • Authentication, permissions, and privacy impact reviewed.
  • No backend, database, server-side token handling, client secret, or persistent Graph data cache added.

Notes for reviewers

  • Release notes are intentionally versioned under .github/release-notes/ so future releases can be edited independently.
  • ZIP contents were validated locally to ensure required self-hosted files are present at archive root.

Copilot AI and others added 2 commits August 30, 2026 21:16
Co-authored-by: Noble-Effeciency13 <84348626+Noble-Effeciency13@users.noreply.github.com>
Co-authored-by: Noble-Effeciency13 <84348626+Noble-Effeciency13@users.noreply.github.com>
Copilot AI changed the title [WIP] Create first release v1.0.0 with deployment package and notes Add v1.0.0 release automation with complete self-hosted ZIP + curated release notes Aug 30, 2026
@Noble-Effeciency13
Noble-Effeciency13 marked this pull request as ready for review August 30, 2026 21:27
Copilot AI lite review requested due to automatic review settings August 30, 2026 21:27
@Noble-Effeciency13
Noble-Effeciency13 merged commit acd1b01 into main Aug 30, 2026
1 check passed
@Noble-Effeciency13
Noble-Effeciency13 deleted the copilot/create-first-release-v100 branch August 30, 2026 21:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow uses the tag value in filesystem paths without validation, allowing path traversal/unsafe filenames (notably via workflow_dispatch inputs).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds release automation for v1.0.0 by packaging a self-host-ready ZIP artifact (not just dist/) and publishing curated, versioned release notes from the repo instead of auto-generated notes.

Changes:

  • Stage a dedicated release-package/ directory containing dist/ plus required self-hosting/reference files, then zip it as entra-extensions-manager-${tag}.zip.
  • Add a release-notes preparation step that sources .github/release-notes/${tag}.md with a fallback message when absent.
  • Update the release publish step to create/edit releases using --notes-file rather than --generate-notes.
File summaries
File Description
.github/workflows/release.yml Packages a deploy-ready ZIP and publishes curated notes during release create/update.
.github/release-notes/v1.0.0.md Adds versioned, curated release notes for the v1.0.0 release.
Review details

Suppressed comments (1)

.github/workflows/release.yml:58

  • tag is used to construct notes_file under .github/release-notes/. Without validation, a tag containing / or .. can traverse directories and publish unintended repository files as release notes (especially via workflow_dispatch). Reject unsafe tag values before building the path.
          tag="${{ github.event.inputs.tag || github.ref_name }}"
          notes_file=".github/release-notes/${tag}.md"
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 40 to +43
tag="${{ github.event.inputs.tag || github.ref_name }}"
asset="entra-extensions-manager-${tag}.zip"
cd dist
zip -r "../${asset}" .
package_dir="release-package"
rm -rf "${package_dir}"
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.

3 participants