Title: 🩹 [Patch]: Only create releases when significant changes are detected (module and documentation) · Issue #184 · PSModule/Process-PSModule · GitHub
Open Graph Title: 🩹 [Patch]: Only create releases when significant changes are detected (module and documentation) · Issue #184 · PSModule/Process-PSModule
X Title: 🩹 [Patch]: Only create releases when significant changes are detected (module and documentation) · Issue #184 · PSModule/Process-PSModule
Description: Describe the change Today, both modules and documentation are published with a version bump whenever a PR is merged, irrespective of the files being changed. We should ensure that we only publish new versions when there are significant c...
Open Graph Description: Describe the change Today, both modules and documentation are published with a version bump whenever a PR is merged, irrespective of the files being changed. We should ensure that we only publish n...
X Description: Describe the change Today, both modules and documentation are published with a version bump whenever a PR is merged, irrespective of the files being changed. We should ensure that we only publish n...
Opengraph URL: https://github.com/PSModule/Process-PSModule/issues/184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"🩹 [Patch]: Only create releases when significant changes are detected (module and documentation)","articleBody":"### Describe the change\n\nToday, both modules and documentation are published with a version bump whenever a PR is merged, irrespective of the files being changed. We should ensure that we only publish new versions when there are significant changes to the relevant source files.\n\n### Problem Statement\n\nCurrently, every merged PR triggers releases for both module and documentation, even when:\n- Only CI/CD configuration files are changed (e.g., workflow files, linter configs)\n- Only repository metadata files are changed (e.g., README badges, CODEOWNERS)\n- Changes are made to unrelated parts of the repository\n- Whitespace-only or formatting-only changes occur in non-source files\n\nThis results in:\n- Version number inflation without meaningful changes for consumers\n- Unnecessary churn in the PowerShell Gallery and documentation site\n- Confusion for users tracking module and documentation updates\n- Increased noise in release notifications\n\n### Expected Behavior\n\n#### 1. Module Release Trigger Conditions\n\nThe workflow SHOULD only create a new **module release** when the PR includes changes to files that affect the module's functionality:\n\n**Files that SHOULD trigger a module release:**\n- Source code files in `src/` directory (functions, classes, variables, etc.)\n- Module manifest changes affecting exported members or metadata\n- Data files included in the module (e.g., JSON schemas, configuration templates)\n- Type and format files (`.ps1xml`)\n- Assembly files in the module\n- Any file that ends up in the built module artifact\n\n**Files that SHOULD NOT trigger a module release:**\n- CI/CD workflow files (`.github/workflows/`)\n- Linter and tool configuration files (`.github/linters/`, `.editorconfig`)\n- Repository metadata (`.github/CODEOWNERS`, `CONTRIBUTING.md`)\n- Test files in `tests/` directory\n- Example files in `examples/` directory (unless shipped with module)\n- Documentation source files (if not shipped with module)\n- Build scripts and development tools\n- Git-related files (`.gitignore`, `.gitattributes`)\n\n#### 2. Documentation Publish Trigger Conditions\n\nThe workflow SHOULD only publish new **documentation** when the PR includes changes to files that affect the documentation output:\n\n**Files that SHOULD trigger a documentation publish:**\n- Source code files in `src/` (changes affect auto-generated function docs)\n- Documentation configuration (`mkdocs.yml`)\n- Custom documentation content in `docs/` directory\n- README.md (if used as documentation landing page)\n- About help topics and inline documentation in source\n- Any file that contributes to the generated documentation site\n\n**Files that SHOULD NOT trigger a documentation publish:**\n- CI/CD workflow files (`.github/workflows/`)\n- Linter and tool configuration files\n- Test files in `tests/` directory\n- Git-related files\n- Files unrelated to module functionality or documentation\n\n#### 3. Combined Change Detection\n\nWhen a PR contains mixed changes:\n- If module source files changed → Trigger module release\n- If documentation-relevant files changed → Trigger documentation publish\n- If both types changed → Trigger both\n- If neither type changed → Skip both release steps\n\n#### 4. Version Bump Behavior\n\nWhen a release IS triggered, the version bump behavior should remain as-is:\n- `Patch` label or default → Patch version bump\n- `Minor` label → Minor version bump \n- `Major` label → Major version bump\n\nWhen NO significant changes are detected for a particular artifact:\n- The release/publish step for that artifact SHOULD be skipped\n- Build and test steps SHOULD still run normally\n- A clear indication SHOULD be provided in the workflow summary (e.g., \"Module release skipped: no significant module changes detected\")\n\n#### 5. Configuration Options\n\nUsers SHOULD be able to customize the behavior via `.github/PSModule.yml`:\n\n- Define additional paths that should trigger module releases\n- Define additional paths that should trigger documentation publishes\n- Define paths that should be excluded from consideration\n- Option to force release behavior (always release on merge, or respect change detection)\n\n#### 6. Edge Cases\n\n- **First release**: If no previous release exists, any change should trigger a release\n- **Force release**: Users should be able to force a release via PR label or commit message convention (e.g., `[force-release]`)\n- **Multiple modules in repo**: Change detection should be scoped to the specific module being processed\n- **Submodule changes**: Changes to git submodules pointing to module content should trigger releases\n\n### User Scenarios\n\n1. **Scenario: CI-only change**\n - Given a PR that only modifies `.github/workflows/workflow.yml`\n - When the PR is merged to main\n - Then NO module release should be created\n - And NO documentation should be published\n - And the workflow summary should indicate both were skipped due to no significant changes\n\n2. **Scenario: Source code change**\n - Given a PR that modifies `src/functions/public/Get-Something.ps1`\n - When the PR is merged to main\n - Then a new module release SHOULD be created\n - And new documentation SHOULD be published (function docs updated)\n\n3. **Scenario: Documentation-only change**\n - Given a PR that only modifies `docs/getting-started.md`\n - When the PR is merged to main\n - Then NO module release should be created\n - And new documentation SHOULD be published\n\n4. **Scenario: Test-only change**\n - Given a PR that only adds new test cases in `tests/`\n - When the PR is merged to main\n - Then NO module release should be created\n - And NO documentation should be published\n\n5. **Scenario: mkdocs.yml change**\n - Given a PR that only modifies `mkdocs.yml` (navigation, theme, etc.)\n - When the PR is merged to main\n - Then NO module release should be created\n - And new documentation SHOULD be published\n\n### Inspiration\n\n- https://powershellexplained.com/2017-10-14-Powershell-module-semantic-version/\n- Semantic release tools in other ecosystems use similar path-based filtering","author":{"url":"https://github.com/MariusStorhaug","@type":"Person","name":"MariusStorhaug"},"datePublished":"2025-08-27T06:26:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/184/Process-PSModule/issues/184"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:60799940-39ec-11af-0175-925f0d7f4e34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC64:2CAE82:3EDFB0:54B535:697AF674 |
| html-safe-nonce | 89ec657b16fb6f89e17d9a9b690df5747f4633f6cdf2dfdb2b8fb2b3e8d8a78a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzY0OjJDQUU4MjozRURGQjA6NTRCNTM1OjY5N0FGNjc0IiwidmlzaXRvcl9pZCI6IjE0NTAzMzU4MDY4MDIyOTQzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d899364082ce31a725e24669cc9b4cbce340bde5fcff1557487d2e330f8af90a |
| hovercard-subject-tag | issue:3358162157 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PSModule/Process-PSModule/184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55bcf19d37fb57757b150111ba68446029bcdb2fa2e58d9f006473de3bc6e9e3/PSModule/Process-PSModule/issues/184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55bcf19d37fb57757b150111ba68446029bcdb2fa2e58d9f006473de3bc6e9e3/PSModule/Process-PSModule/issues/184 |
| og:image:alt | Describe the change Today, both modules and documentation are published with a version bump whenever a PR is merged, irrespective of the files being changed. We should ensure that we only publish n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MariusStorhaug |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| turbo-cache-control | no-preview |
| go-import | github.com/PSModule/Process-PSModule git https://github.com/PSModule/Process-PSModule.git |
| octolytics-dimension-user_id | 142951047 |
| octolytics-dimension-user_login | PSModule |
| octolytics-dimension-repository_id | 706356420 |
| octolytics-dimension-repository_nwo | PSModule/Process-PSModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 706356420 |
| octolytics-dimension-repository_network_root_nwo | PSModule/Process-PSModule |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width