Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 22, 2026

This release makes several improvements to the release workflow and supporting scripts, focusing on standardization, clarity, and modernization. The most significant changes include renaming and updating the release workflow, consolidating and improving PowerShell scripts, and cleaning up configuration files related to linters and release notes. Additionally, the scripts now use Write-Host for output and include more structured and readable logging.

Release Workflow Improvements

  • Renamed the workflow file from .github/workflows/Auto-Release.yml to .github/workflows/Release.yml, updated the workflow name and job names, and switched from the Auto-Release action to the newer Release-GHRepository action for publishing releases. Also, restricted the workflow to trigger only on changes to action.yml and src/**.

PowerShell Script Modernization and Consolidation

  • Moved PowerShell scripts from the scripts/ directory to src/, updated references in action.yml, and improved script output by replacing Write-Output with Write-Host for better compatibility with GitHub Actions. Added more structured and visually separated log output using Write-Host '-------------------------------------------------'.

Configuration and Linting Cleanup

  • Removed the .github/linters/.jscpd.json configuration file and disabled JSCPD validation in the linter workflow.
  • Added an exclusion for the PSAvoidUsingWriteHost rule in .github/linters/.powershell-psscriptanalyzer.psd1 to allow using Write-Host in scripts running on GitHub Actions.

Release Notes and Input Documentation

  • Removed the custom changelog configuration from .github/release.yml to rely on default GitHub release note generation.
  • Fixed a typo in the IncrementalPrerelease input description in action.yml.

Copilot AI review requested due to automatic review settings January 22, 2026 18:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the deprecated .github/release.yml configuration file as the release configuration has been migrated to the action's input parameters.

Changes:

  • Removed .github/release.yml file containing changelog configuration for automatically generated release notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug MariusStorhaug changed the title 🩹 Remove deprecated release.yml configuration 🩹[Patch] Remove deprecated release.yml configuration Jan 22, 2026
@MariusStorhaug MariusStorhaug changed the title 🩹[Patch] Remove deprecated release.yml configuration 🩹[Patch]: Remove deprecated release.yml configuration Jan 22, 2026
@MariusStorhaug MariusStorhaug changed the title 🩹[Patch]: Remove deprecated release.yml configuration 🩹 [Patch] Remove deprecated release.yml configuration Jan 22, 2026
@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch] Remove deprecated release.yml configuration 🩹[Patch]: Remove deprecated release.yml configuration Jan 22, 2026
@MariusStorhaug MariusStorhaug self-assigned this Jan 22, 2026
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner January 25, 2026 17:31
- Remove old publish script and replace it with a new structured approach using init.ps1, publish.ps1, and cleanup.ps1.
- Add GitHub Actions workflow for automated releases triggered by pull request events.
- Introduce new parameters for managing versioning and release types, including support for prereleases and cleanup of old prereleases.
- Enhance logging and error handling throughout the scripts for better traceability.
Copilot AI review requested due to automatic review settings January 25, 2026 20:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

.github/workflows/Release.yml:18

  • The scope of this PR is described as removing the deprecated .github/release.yml configuration, but the changes also introduce new PowerShell scripts under src/, switch the composite action to use those scripts, and adjust the Release workflow’s name, job ID, and path filters. It would be helpful for future maintainers if the PR description (and/or commit message) were updated to reflect these broader behavior and structure changes, not just the removal of the release configuration file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug MariusStorhaug changed the title 🩹[Patch]: Remove deprecated release.yml configuration 🩹 [Patch]: Standardize Release workflow and remove deprecated config Jan 25, 2026
Copilot AI review requested due to automatic review settings January 25, 2026 21:32
@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: Standardize Release workflow and remove deprecated config 🩹[Patch]: Remove deprecated release.yml and rename Auto-Release to Release-GHRepository Jan 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug MariusStorhaug changed the title 🩹[Patch]: Remove deprecated release.yml and rename Auto-Release to Release-GHRepository 🩹[Patch]: Workflow improvements Jan 26, 2026
Copilot AI review requested due to automatic review settings January 27, 2026 09:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/publish.ps1:192

  • This Write-Host notice now includes $releaseURL, but $releaseURL is only assigned in the non-WhatIf branch above. When WhatIf is true, this line will still log a "New release" notice with an empty URL even though no release was created, which is misleading for consumers of this action. Consider either skipping this notice when WhatIf is enabled or emitting a distinct "WhatIf"-specific message that does not reference $releaseURL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 27, 2026 10:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 27, 2026 16:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (4)

src/publish.ps1:123

  • In the WhatIf branch, the gh pr comment command string is built using a single-quoted literal on the second part, so $releaseType, $name, $publishPSVersion, and $psGalleryReleaseLink will not be interpolated and the logged command will show the variable names instead of their values. To make the WhatIf output accurately reflect the command that would be run, consider switching this inner string to an interpolated form (e.g., double-quoted or -f formatting) so the variables are expanded.
    src/publish.ps1:201
  • Similarly to the PSGallery WhatIf output, this gh pr comment command string in the WhatIf branch uses a single-quoted literal, so $releaseType, $name, and $newVersion will not be interpolated and the logged command will show literal variable names. For more useful diagnostics in WhatIf mode, it would be better to build this string in a way that expands those variables (for example by using a double-quoted string or -f formatting).
    src/publish.ps1:127
  • In these success messages, there is an unmatched backtick immediately after $releaseType (e.g., ✅ New release: PowerShell Gallery - ...), which will show up literally in the rendered notice/comment and likely isn’t intended. Consider either removing the backtick or wrapping the release type in matching backticks if you want inline-code formatting.
    src/publish.ps1:210
  • These GitHub release notifications also include an unmatched backtick immediately after $releaseType in both the PR comment body and the ::notice title, so the rendered text will appear with a stray ` character (e.g., ✅ New prerelease: GitHub - ...). If that isn’t intentional, consider removing the backtick or adding a matching one to get proper inline-code formatting around the release type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 27, 2026 16:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/publish.ps1:209

  • In the New-GitHubRelease log group, the final notice message is always emitted, but $releaseURL is only assigned inside the else branch when $whatIf is $false. In WhatIf mode this results in a ::notice that claims a release was created and includes an empty $releaseURL, which is both misleading and relies on an uninitialized variable. Please gate the final notice so it only runs when a release has actually been created (e.g., in the non-WhatIf path where $releaseURL is set) and avoid referencing $releaseURL when it may be null.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 27, 2026 18:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug MariusStorhaug merged commit 956f6da into main Jan 27, 2026
23 checks passed
@MariusStorhaug MariusStorhaug deleted the workflow-updates branch January 27, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants