Skip to content

Add crate management section - #244

Open
sagudev wants to merge 1 commit into
mainfrom
sagudev-patch-2
Open

Add crate management section#244
sagudev wants to merge 1 commit into
mainfrom
sagudev-patch-2

Conversation

@sagudev

@sagudev sagudev commented Aug 28, 2026

Copy link
Copy Markdown
Member

Based on servo/mozjs#687 (comment) and servo/mozjs#678 (comment)

Signed-off-by: Sam <16504129+sagudev@users.noreply.github.com>
@sagudev
sagudev requested a review from jschwe August 28, 2026 05:46
3.1. Repository owner: servo
3.2. Repository name: ${repo}
3.3 Workflow filename: ${yml_file_for_publish} (Usually `publish.yml` or `release.yml`)
3.4 Environment: Not applicable, leave empty.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
3.4 Environment: Not applicable, leave empty.
3.4 Environment: publish_crates_io (See "setting up github environment for publishing)
#### Configure GitHub environment to further secure publishing
We use [GitHub Environments](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments) to further protect the publishing.
See [this guide](https://servo.zulipchat.com/user_uploads/30542/JG9Y_pWMYyU2a4P1mxFBv9Pd/servo-github-environments.pdf) for the initial setup. The steps can be varied based on the individual repositories needs. If publishing is intended to be automatic (i.e. one maintainer approval is sufficient, publish after merging a PR) then "required reviewers" can be skipped. "Protected branches only" prevents single maintainers (not admins) from creating releases from feature branches (via modified workflow files) and should always be enabled.

Comment thread governance/ADMINISTRATORS.md
To do this we create dummy crate (0.0.0) with empty contents, just to reserve the crate name:
1. `cargo new --lib ${create_name}`
2. edit `Cargo.toml` and add required fields for publish: `description` and `license`
3. `cargo publish`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
3. `cargo publish`
3. `cargo publish`
# For redundancy add more (at least two) administrators as crate owners (just adding team is not enough).
4. `cargo owner --add <github handle>` (e.g. `sagudev` for `@sagudev`)

How about just adding this here, instead of a dedicated section?

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