Conversation
Two issues found while validating the CLI release after #37568: - JRELEASER_DRY_RUN was never read by the jreleaser-maven-plugin (it uses the property jreleaser.dry.run), and publish-npm-package ignored the input, so a workflow_dispatch with dry-run=true created a real GitHub release and ran npm publish. Set the plugin property and skip the NPM job on dry-run. - clean-up 'needs' publish-npm-package without 'always()', so skipping the NPM job on a dry-run leaked the version-update auxiliary branch. Refs #37567
|
Claude finished @wezell's task in 1m 11s —— View job PR Review: make dry-run actually dry and always clean up
All three changes are correct and the reasoning holds up against the full workflow. Analysis1. 2. 3. New IssuesNo issues found. Edge cases I checked and found handled: null input on One thing worth noting but out of scope for this diff: · |
Summary
Follow-up to #37568. While validating the CLI release with a
workflow_dispatchdry-run after the Artifactory→BunnyCDN migration, the dry-run turned out not to be dry:JRELEASER_DRY_RUNis never read. The JReleaser Maven plugin's dry-run is the propertyjreleaser.dry.run(JRELEASER_DRY_RUNis ignored), so a dry-run dispatch would create a real GitHub release.publish-npm-packageignored the input —if: success()— so a dry-run dispatch rannpm publishfor real.clean-upleaked the auxiliary branch — itneeds: publish-npm-packagewithoutalways(), so once the NPM job is skipped (or fails) theversion-update-*branch is never deleted.Changes
-Djreleaser.dry.run=trueon a dry-run dispatch and drop the ineffectiveJRELEASER_DRY_RUNenv.publish-npm-package:if: success() && github.event.inputs.dry-run != 'true'.clean-up:if: ${{ always() && needs.precheck.outputs.AUXILIARY_BRANCH != '' }}.Validation
Ran a
workflow_dispatchdry-run ofRelease - CLIon a scratch ref containing these changes:--- jreleaser:1.8.0:release (default) ---→ success[INFO] dry-run set to true[INFO] [upload] Uploading is not enabled. Skipping(confirms removing the Artifactory uploader is clean)Publish NPM Package: skippedPublish CLI artifacts to S3: skipped (dry-run), as designedRefs #37567