Release

From karrioapi/karrio · View interactive version

Release is an AI agent skill from the GitHub repository karrioapi/karrio. Create a new Karrio release by bumping versions, syncing packages, generating frozen requirements, updating the changelog, committing, and optionally generating API schemas.

How to use this skill

Skill file

Release Skill

Create a new Karrio release by bumping versions, syncing packages, generating frozen requirements, updating the changelog, committing, and optionally generating API schemas.

Prerequisites

Release Workflow

Step 1: Bump Version

# Replace OLD_VERSION → NEW_VERSION in central files
./bin/update-version <OLD_VERSION> <NEW_VERSION>

Files touched by update-version:

Step 2: Sync Package Versions

# Update ALL pyproject.toml files to match central VERSION
./bin/update-package-versions

This updates version in:

Step 3: Generate Frozen Requirements

# Generate frozen pip requirements from incremental builds
./bin/update-version-freeze

This creates a clean virtualenv and generates:

Step 4: Generate Source Requirements

# Convert git URLs to PyPI versions and generate source requirements
./bin/update-source-version-freeze

This generates:

Step 5: Update CHANGELOG.md

Review commits since the last release and update CHANGELOG.md:

Step 6: Check Submodules

Before committing, verify submodules are on the correct branch:

git submodule status
# Ensure ee/insiders, ee/platform, community are on main
cd ee/insiders && git checkout main && git pull && cd ../..
cd ee/platform && git checkout main && git pull && cd ../..
cd community && git checkout main && git pull && cd ..

Step 7: Commit

git add -A
git commit -m "release: <NEW_VERSION>"

Step 8: Generate API Schemas (Optional)

Start the server and generate latest OpenAPI and GraphQL schemas:

# Start server in background
./bin/start &

# Wait for server to be ready (check http://localhost:5002/health)
# Then generate schemas:

# OpenAPI schema
curl http://localhost:5002/shipping-openapi -o schemas/openapi.yml
curl http://localhost:5002/shipping-openapi?docs -o apps/www/openapi.yml

# GraphQL schema (requires running server)
karrio graphql_schema --schema karrio.server.graph.schema --out schemas/graphql.json

# Generate TypeScript types from GraphQL schema
./bin/generate-graphql-types

# Stop the server
kill %1

Step 9: Build Packages (Optional)

# Dry run - check what would be built
./bin/build-and-release-packages --dry-run

# Build only (no publish)
./bin/build-and-release-packages --build-only

# Build and publish
./bin/build-and-release-packages

Automated Release

The full release process is automated via bin/release:

# Auto-increment patch version
./bin/release

# Or specify a version explicitly
./bin/release 2026.2.0

This script handles everything: version bump, package sync, frozen requirements,

CHANGELOG generation, submodule commits, branch push, and PR creation/update.

Manual Release Command

For a manual release with no schema regeneration:

./bin/update-version <OLD> <NEW> && \
./bin/update-package-versions && \
./bin/update-version-freeze && \
./bin/update-source-version-freeze && \
git add -A && \
git commit -m "release: <NEW>"

Version Format

Karrio uses calendar versioning: YYYY.M.PATCH (e.g., 2026.1.20).

The central version file is apps/api/karrio/server/VERSION.

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.