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
Copy Markdown
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
Copy Markdown
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?

Comment thread .bcr/config.yml Outdated
Comment thread .bcr/config.yml Outdated
Comment thread .github/workflows/publish-to-bcr.yml
Comment thread .bcr/bazel/metadata.template.json Outdated
@mmorel-35
Copy link
Copy Markdown
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>
Comment thread .github/workflows/publish-to-bcr.yml
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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>
Comment thread .bcr/config.yml

fixedReleaser:
login: sbc100
email: sbc@chromium.org
Copy link
Copy Markdown
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
Copy Markdown
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.

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 14, 2026

What do we need to do to move this forward?

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