Skip to content

[bazel] Setup workflow to publish to BCR#1639

Open
mmorel-35 wants to merge 2 commits intoemscripten-core:mainfrom
mmorel-35:bcr
Open

[bazel] Setup workflow to publish to BCR#1639
mmorel-35 wants to merge 2 commits intoemscripten-core:mainfrom
mmorel-35:bcr

Conversation

@mmorel-35
Copy link
Collaborator

@mmorel-35 mmorel-35 commented Dec 4, 2025

This provide the workflow to publish each new tag to the BCR as it was yet done https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/emsdk

Fixes: #1674

@mmorel-35 mmorel-35 force-pushed the bcr branch 2 times, most recently from f63d8bd to e0ae060 Compare December 4, 2025 07:42
@sbc100 sbc100 changed the title Setup workflow to publish to BCR [bazel] Setup workflow to publish to BCR Dec 8, 2025
Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

I don't know much about this stuff I'm afraid. Perhaps @walkingeyerobot can review?

@mmorel-35
Copy link
Collaborator Author

The workflow is provided based on https://github.com/bazel-contrib/publish-to-bcr/ and BCR is here

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
attestations: write
secrets:
# Necessary to push to the BCR fork, and to open a pull request against a registry
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You'll need to create a dedicated token

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you tell me the exact steps I need to take here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you use ${{ secrets.EMSCRIPTEN_BOT_TOKEN }} here? Then I will give the bot the ability to create PRs in https://github.com/emscripten-core/bazel-central-registry

Will that work?

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

fixedReleaser:
login: sbc100
email: sbc@chromium.org
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kripken do we have some other email we can use here other than my (or your) personal one?

@@ -0,0 +1,23 @@
name: Publish to BCR
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you replace "BCR" with something like "Bazel Registry" ? Both in the name of this file and in the name field here?

The "bcr" acronym won't mean anything folks who don't work with bazel.

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.

[feature request/bazel] integrate GH action for automatic push to BCR on release

2 participants