Add automated dist build workflow with PR verification#5
Draft
Copilot wants to merge 6 commits into
Draft
Conversation
- Add .github/workflows/build.yml to verify dist is up-to-date - Update README.md with CI/CD section and build instructions - Add CONTRIBUTING.md with detailed contributor guidelines - Workflow checks that dist folder is in sync with source code - Workflow runs tests to ensure code quality Co-authored-by: woeterman94 <5755057+woeterman94@users.noreply.github.com>
- Set contents: read permission to follow security best practices - Addresses CodeQL security alert about missing workflow permissions Co-authored-by: woeterman94 <5755057+woeterman94@users.noreply.github.com>
- Set contents: read permission for all test jobs - Ensures both workflows follow security best practices Co-authored-by: woeterman94 <5755057+woeterman94@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add build workflow to compile action
Add build workflow to verify compiled dist folder
Feb 5, 2026
Owner
|
@copilot I meant I need a workflow to generate the dist folder. How else should we update and build this action? |
Co-authored-by: woeterman94 <5755057+woeterman94@users.noreply.github.com>
Contributor
Author
I've added a new workflow ( How it works:
The two workflows now serve different purposes:
This means contributors only need to commit source code changes - CI handles building the dist folder. Commit: 3cb184c |
Co-authored-by: woeterman94 <5755057+woeterman94@users.noreply.github.com>
Copilot
AI
changed the title
Add build workflow to verify compiled dist folder
Add automated dist build workflow with PR verification
Feb 5, 2026
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.
TypeScript GitHub Actions require committing compiled code in
dist/. This PR adds automated workflows to build and commit the dist folder on pushes to main, while verifying dist is up-to-date on pull requests.Changes
Automated Build Workflow (
.github/workflows/build-dist.yml)dist/when source files are pushed tomainsrc/,package.json,package-lock.json, ortsconfig.json[skip ci]to prevent infinite loopsBuild Verification Workflow (
.github/workflows/build.yml)dist/would be up-to-date before mergenpm run alland fails ifdist/is out of sync with sourceSecurity Hardening
permissions: contents: readto verification workflow per CodeQL recommendationspermissions: contents: writeto automated build workflow for committing changesDocumentation
CONTRIBUTING.mdwith updated build requirements explaining automated buildsWorkflow Behavior
For Pull Requests:
Contributors who modify source without updating dist will see:
For Main Branch:
When source changes are pushed to
main, the workflow automatically:npm run allThis approach allows contributors to focus on source code changes while CI handles compilation automatically.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.