GitHub Action
The action downloads the Just Shipped executable for the runner, checks it against the release's SHA256SUMS, and runs it. Nothing else is installed: no Node, no Bun, no npm.
Usage
A workflow in the Pebble repository (example/pebble):
name: Release notes
on:
release:
types: [published]
permissions:
contents: write
pull-requests: write
jobs:
justshipped:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # the full history and tags, so the release range can be resolved
- uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
with:
args: generate
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # optional: without a provider key the run is rules-onlyThe snippets here are pinned to the latest release's commit, with its version as a comment; each release updates them. Pin to a commit SHA like this rather than a tag, which can be moved. By default the action installs the executable of the release it is pinned to, so the SHA pins both.
Preview and ship
The release flow is two commands. Both read the event GitHub gives the run (GITHUB_EVENT_PATH, GITHUB_EVENT_NAME), and both print why and exit 0 when the event is not theirs, so one workflow can call them on every event it listens to.
on:
pull_request:
types: [opened, synchronize, reopened, edited]
release:
types: [published]
permissions: {}
concurrency:
group: release-notes-${{ github.event.pull_request.number || github.event.release.tag_name }}
cancel-in-progress: false
jobs:
preview:
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'release-please--branches--')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
with:
args: preview
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ship:
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
with:
args: ship
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}| Command | Runs on | What it does |
|---|---|---|
preview | A release pull request: release-please, Changesets, a pull request labeled release:preview, or with semantic-release any pull request to the default branch | Generates the bundle, pushes its text files to justshipped/<version>, and creates or updates one comment on the pull request. |
ship | A published release, a pushed release tag when no release tool is configured, or a manual run | Takes the bundle from justshipped/<version> as it is (or generates it when there is no such branch), writes the Release body, attaches the bundle zip, and deletes the branch. A re-run for a published release whose notes are already in place and whose branch is gone does nothing, so the notes that shipped are never replaced by a fresh draft. |
Things to know:
- Edits are kept. Change any text file on the
justshipped/<version>branch. The nextpreviewkeeps your version and lists the file in the comment with a checkbox; tick it to have the file written again on the next run.shipuses the branch exactly as it is, so an edit made after the last preview still ships. - The version. release-please and Changesets pull requests carry it. For a
release:previewlabel or semantic-release, pass--version(the semantic-release example computes it with a dry run). - The release must exist.
shipupdates a published release and never creates one. Its part of the body sits between<!-- justshipped:start -->and<!-- justshipped:end -->, after the release tool's own notes, and is replaced in place on a re-run. - The comment's author. Only a comment by the token's own login is read and updated, so nobody else's comment can be taken over. The default is
github-actions[bot]; pass--bot <login>whengithub-tokenbelongs to another account or app. - Other workflows. A pull request or release created with a workflow's own
GITHUB_TOKENdoes not start other workflows. Run your release tool with a personal access token or a GitHub App token so its pull request and release start this one.
Complete workflows for each release tool are in examples/workflows/.
justshipped publish [bundle] --to <id,...> [--plan] runs the targets listed under targets: in the config on a bundle that is already on disk, and records each target's links in published.json in the bundle. --plan only says what would be done.
Inputs
| Input | Default | What it does |
|---|---|---|
args | generate | Arguments passed to justshipped. Split on whitespace; no shell expansion or globbing is applied. |
version | the pinned release | Release to run: latest or 1.2.3 (a leading v is dropped). Unset, it is the release the action is pinned to. Anything else fails before a download. |
working-directory | . | Directory to run in. |
github-token | ${{ github.token }} | Token given to the run as GITHUB_TOKEN. |
Other settings, such as an AI provider key, are passed as environment variables on the step. Just Shipped reads secrets by environment variable name only.
- uses: cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0
with:
version: 1.2.3
working-directory: apps/pebble
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}Permissions
| Permission | Needed for |
|---|---|
contents: write | Pushing the bundle branch and writing the Release body. |
pull-requests: write | The preview comment on the release PR. |
AI needs a provider key secret, such as ANTHROPIC_API_KEY, passed as an environment variable on the step. Without one the run is rules-only.
Runners
| Runner | Executable |
|---|---|
| Linux x64, arm64 | justshipped-linux-x64, justshipped-linux-arm64 |
| macOS x64, arm64 | justshipped-darwin-x64, justshipped-darwin-arm64 |
| Windows x64 | justshipped-windows-x64.exe |
Any other platform fails with a message naming the supported set. The runner needs bash, curl, and sha256sum or shasum, which GitHub-hosted runners have (Git Bash on Windows).
Checksum verification
Every release carries the executables and a SHA256SUMS file. The action runs action/install.sh, which:
- resolves the version (unset means the release the action is pinned to;
latestfollows the release redirect, so no API token is needed); - downloads the executable for the runner and
SHA256SUMSfrom that release; - computes the SHA-256 of the download and compares it with the line for that file.
If the checksums differ, the file has no line in SHA256SUMS, or no checksum tool is available, the step fails and nothing is installed or cached. Only a verified executable is saved with actions/cache, keyed on version and platform, so later runs skip the download.
Gitea and Forgejo Actions
The same action runs unchanged in Gitea Actions and Forgejo Actions. It is a composite action made of bash and curl steps plus actions/cache, all of which those runners support. Reference it by full URL if your instance does not resolve actions from GitHub by default:
- uses: https://github.com/cwaits6/justshipped@87687d585fef1f457b68c17be3c3a47e94e340cf # 0.2.0The executables are still downloaded from the Just Shipped release on GitHub, so the runner needs outbound access to github.com. github-token defaults to the instance's own job token.
FAQ
Do I need an AI key? No. --no-ai, or having no key and no model.provider in your config, gives rules-only output: a usable changelog built from your conventional commits. A model adds grouping, plain-language writing in your voice, and the longer post.
Any CI
Just Shipped runs anywhere a Linux command or a container runs. There are two ways to get it into a job: