Required Variables
The Modrinth API token used to authenticate with the Modrinth API.You can generate an API token from your Modrinth account settings under the “API tokens” section. The token needs the or with system properties:
UPLOAD_VERSION scope.Example:The Modrinth project ID or slug where the version will be uploaded.You can find your project ID/slug in your project’s settings or URL (e.g., or with system properties:
fabric-api from https://modrinth.com/mod/fabric-api).Example:Space-separated list of Minecraft versions that this version supports.If not set, MCReleaser will use the common or with system properties:
GAME_VERSIONS variable as a fallback.Example:Space-separated list of mod loaders that this version supports.Valid values: or with system properties:
fabric, forge, quilt, neoforge, rift, liteloader, modloader, paper, spigot, bukkit, purpur, sponge, bungeecord, waterfall, velocityExample:Optional Variables
The type of game version to filter when resolving version IDs from the Minecraft version manifest.If not set, MCReleaser will use the common
GAME_VERSION_TYPE variable as a fallback.Valid values: release, snapshot, old_beta, old_alphaExample:The release channel for this version on Modrinth.Valid values:or with system properties:
release- Stable, production-ready releasebeta- Beta testing versionalpha- Alpha testing version
JSON array of dependencies for this version. Each dependency specifies a relationship to another project.Format:Valid dependency types:
required, optional, incompatible, embeddedExample:Whether to feature this version. Featured versions appear more prominently on the project page.Example:or with system properties:
The Modrinth API endpoint to use. Set to or with system properties:
staging to upload to Modrinth’s staging environment for testing.Valid values:production- Use the production Modrinth API (https://api.modrinth.com)staging- Use the staging Modrinth API (https://staging-api.modrinth.com)
The staging environment is useful for testing uploads without affecting your production project.
Source Reference
Modrinth properties are defined in:Complete Example
Using Environment Variables
Using System Properties
GitHub Actions Workflow
Tips
- Store your
MODRINTH_TOKENas a secret in your CI/CD system - The version name will be taken from the common
NAMEvariable - The version changelog will be taken from the common
DESCRIPTIONvariable - You can specify multiple loaders separated by spaces to support cross-platform mods
- Use the common
GAME_VERSIONSvariable to set versions for all platforms at once - Featured versions are highlighted on your project page, but only one version per loader/game version combination should be featured