jupyter_releaser icon indicating copy to clipboard operation
jupyter_releaser copied to clipboard

Populate release as part of the `Step 1: Prep Release` workflow?

Open jtpio opened this issue 1 year ago • 6 comments
trafficstars

Problem

Running the Step 1: Prep Release is a good way to check the version is correctly bumped, and the changelog correctly created.

However this workflow does not populate the draft GitHub release with the built artifacts (wheel, sdist, npm tarballs), as this is done as part of the populate-release step in the Step 2: Publish Release workflow.

Maintainers might sometimes want to make sure the built assets are correct, and perform some manual checks.

Proposed Solution

This likely does not require any change to the releaser core functionality. Maybe just moving this step:

https://github.com/jupyter-server/jupyter_releaser/blob/8568b9b5017b1a76e9c7af21315ecb04d933886b/example-workflows/publish-release.yml#L25-L32

To this workflow: https://github.com/jupyter-server/jupyter_releaser/blob/main/example-workflows/prep-release.yml

I guess one could try that on a test repo first to see if the whole flow would still work fine.

Additional context

cc @martinRenou who I think was mentioning this after using the python_packages configuration of the releaser for https://github.com/voila-dashboards/voici

jtpio avatar Feb 07 '24 13:02 jtpio

Yeah, that should work, without any changes to core.

blink1073 avatar Feb 17 '24 20:02 blink1073

Maybe one drawback of this approach if that the release commit is pushed during the populate-release step.

Which means that if the maintainer wants to delete the draft GitHub release, they would also have to revert that commit too.

jtpio avatar Feb 23 '24 08:02 jtpio

Yeah, I don't see a way around that, since the assets are tied to the version bump commit.

blink1073 avatar Feb 23 '24 11:02 blink1073