Skip to content

Conversation

@alexcrichton
Copy link
Member

Immutable Releases look to be a relatively new feature on github which is a natural fit for us where we have no need to modify release assets after creation. My failed attempt to enable this earlier turned out to, expectedly, not work. This commit is an attempt to make things work. Specifically releases are now created as a draft initially, then release assets are attached, and finally it's automatically marked as a non-draft. While one could make a reasonable argument that a human should be involved in making the release a non-draft there's also something nice about just hitting merge on a PR and letting the release ride through CI.

[Immutable Releases] look to be a relatively new feature on github which
is a natural fit for us where we have no need to modify release assets
after creation. My failed attempt to enable this earlier turned out to,
expectedly, not work. This commit is an attempt to make things work.
Specifically releases are now created as a draft initially, then release
assets are attached, and finally it's automatically marked as a
non-draft. While one could make a reasonable argument that a human
should be involved in making the release a non-draft there's also
something nice about just hitting merge on a PR and letting the release
ride through CI.

[Immutable Releases]: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases
@alexcrichton alexcrichton requested a review from a team as a code owner October 21, 2025 21:31
@alexcrichton alexcrichton requested review from pchickey and removed request for a team October 21, 2025 21:31
@alexcrichton
Copy link
Member Author

And full disclosure, I've no idea how to test this JS so I haven't tested this. My plan is to issue 38.0.2 with this as a trial run. Probaby 38.0.3 as well once something inevitably goes wrong.

@alexcrichton alexcrichton added this pull request to the merge queue Oct 21, 2025
Merged via the queue into bytecodealliance:main with commit 710ba4b Oct 21, 2025
45 checks passed
@alexcrichton alexcrichton deleted the immutable-release branch October 21, 2025 22:14
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with bytecodealliance#11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with #11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with bytecodealliance#11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with bytecodealliance#11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with bytecodealliance#11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with bytecodealliance#11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit that referenced this pull request Oct 22, 2025
* Attempt to use github immutable releases (#11902)

[Immutable Releases] look to be a relatively new feature on github which
is a natural fit for us where we have no need to modify release assets
after creation. My failed attempt to enable this earlier turned out to,
expectedly, not work. This commit is an attempt to make things work.
Specifically releases are now created as a draft initially, then release
assets are attached, and finally it's automatically marked as a
non-draft. While one could make a reasonable argument that a human
should be involved in making the release a non-draft there's also
something nice about just hitting merge on a PR and letting the release
ride through CI.

[Immutable Releases]: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases

* Fix release script (#11906)

This is an attempt to fix a bug with #11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit that referenced this pull request Oct 22, 2025
This is an attempt to fix a bug with #11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit that referenced this pull request Oct 23, 2025
* Attempt to use github immutable releases (#11902)

[Immutable Releases] look to be a relatively new feature on github which
is a natural fit for us where we have no need to modify release assets
after creation. My failed attempt to enable this earlier turned out to,
expectedly, not work. This commit is an attempt to make things work.
Specifically releases are now created as a draft initially, then release
assets are attached, and finally it's automatically marked as a
non-draft. While one could make a reasonable argument that a human
should be involved in making the release a non-draft there's also
something nice about just hitting merge on a PR and letting the release
ride through CI.

[Immutable Releases]: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases

* Fix release script (#11906)

This is an attempt to fix a bug with #11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
alexcrichton added a commit that referenced this pull request Oct 23, 2025
* Attempt to use github immutable releases (#11902)

[Immutable Releases] look to be a relatively new feature on github which
is a natural fit for us where we have no need to modify release assets
after creation. My failed attempt to enable this earlier turned out to,
expectedly, not work. This commit is an attempt to make things work.
Specifically releases are now created as a draft initially, then release
assets are attached, and finally it's automatically marked as a
non-draft. While one could make a reasonable argument that a human
should be involved in making the release a non-draft there's also
something nice about just hitting merge on a PR and letting the release
ride through CI.

[Immutable Releases]: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases

* Fix release script (#11906)

This is an attempt to fix a bug with #11901 where for 38.0.2 a draft
release was made but it wasn't published due to a bug, so hopefully
it'll be less buggy next time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants