2
0
Fork 0
mirror of https://github.com/jdx/mise-action.git synced 2026-09-24 18:33:56 +00:00
No description
  • TypeScript 86.7%
  • Shell 11.2%
  • JavaScript 2.1%
Find a file
jdx d6728741eb
chore: float jdx tools and aube on latest without a release-age delay (#631)
New releases of jdx's own tools and aube were held back by mise's
default 24-hour `minimum_release_age`, and some were pinned to old
versions. These are our own releases, so there's no supply-chain reason
to wait for them.

Each tool below now uses `version = "latest"` with `minimum_release_age
= "0s"`, for example:

```toml
[tools]
aube = { version = 'latest', minimum_release_age = '0s' }
```

| Tool | Before | Locked now |
|---|---|---|
| `aube` | `latest` | 2.3.0 |
| `communique` | `latest` | 1.4.2 |

The tools above are re-locked at their newest releases from the
registry's current backends (packslip for most).

Other tools keep the default release-age delay.

*AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5-5;
version: unavailable.*

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 14:29:26 -05:00
.codex chore: remove entire and codex agent hooks 2026-09-17 17:00:11 +00:00
.entire chore: remove Entire trail runners (#630) 2026-09-23 13:21:18 -05:00
.github chore(deps): pin jdx/renovate-config workflows to v1.0.0 2026-09-23 18:31:46 +00:00
.husky chore(deps): migrate to aube lockfile (#576) 2026-07-24 13:37:38 -05:00
dist chore(deps): lock file maintenance (#626) 2026-09-21 13:20:42 +00:00
scripts fix: export mise path entries to subsequent steps (#575) 2026-07-24 13:37:47 -05:00
src fix: authenticate mise self-update to avoid GitHub API rate limits (#619) 2026-09-09 07:10:46 -05:00
.eslintrc.yml feat: support windows (#122) 2024-09-25 21:27:52 +00:00
.gitattributes updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
.gitignore chore: migrate package manager from npm/pnpm/bun to aube (#455) 2026-04-29 09:13:34 -05:00
.npmrc chore: migrate package manager from npm/pnpm/bun to aube (#455) 2026-04-29 09:13:34 -05:00
.prettierignore updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
.prettierrc.json updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
action.yml feat: add minimum release age for mise (#604) 2026-08-24 08:27:29 -05:00
aube-lock.yaml chore(deps): lock file maintenance (#626) 2026-09-21 13:20:42 +00:00
CHANGELOG.md chore: release v4.3.0 (#605) 2026-08-25 05:07:59 -05:00
CLAUDE.md chore(deps): migrate to aube lockfile (#576) 2026-07-24 13:37:38 -05:00
cliff.toml docs: hide release entries in CHANGELOG 2025-08-18 11:50:35 -05:00
CODEOWNERS jdxcode -> jdx 2023-08-27 12:12:44 -05:00
eslint.config.mjs chore: updated deps 2024-11-27 18:10:51 -06:00
greptile.json chore(release): skip ai reviews for release prs (#549) 2026-07-09 14:00:49 -07:00
LICENSE Initial commit 2023-01-14 08:11:40 -06:00
mise.lock chore: float jdx tools and aube on latest without a release-age delay (#631) 2026-09-23 14:29:26 -05:00
mise.toml chore: float jdx tools and aube on latest without a release-age delay (#631) 2026-09-23 14:29:26 -05:00
package.json chore: release v4.3.0 (#605) 2026-08-25 05:07:59 -05:00
README.md feat: add minimum release age for mise (#604) 2026-08-24 08:27:29 -05:00
rollup.config.mjs chore: migrate package manager from npm/pnpm/bun to aube (#455) 2026-04-29 09:13:34 -05:00
tsconfig.json chore: migrate from ncc (CJS) to rollup (ESM) (#436) 2026-04-11 12:55:09 -05:00

Example Workflow

name: test
on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: jdx/mise-action@v4
        with:
          version: 2026.3.10 # [default: latest] mise version to install
          # minimum_release_age: 7d # select mise releases at least 7 days old instead of setting version
          install: true # [default: true] run `mise install`
          install_args: "bun" # [default: ""] additional arguments to `mise install`
          bootstrap: false # [default: false] run `mise bootstrap` instead of `mise install`
          bootstrap_skip: "tools,task" # [default: ""] comma-separated parts to skip when bootstrapping
          bootstrap_args: "--yes" # [default: ""] additional arguments to `mise bootstrap`
          cache: true # [default: true] cache mise using GitHub's cache
          experimental: true # [default: false] enable experimental features
          log_level: debug # [default: info] log level
          # automatically write this .tool-versions file
          tool_versions: |
            shellcheck 0.11.0
          # or, if you prefer .mise.toml format:
          mise_toml: |
            [tools]
            shellcheck = "0.11.0"
          working_directory: app # [default: .] directory to run mise in
          reshim: false # [default: false] run `mise reshim -f`
          env: true # [default: true] export mise environment variables
          export_path: true # [default: true] add mise PATH entries to subsequent steps
          github_token: ${{ secrets.GITHUB_TOKEN }} # [default: ${{ github.token }}] GitHub token for API authentication
      - run: shellcheck scripts/*.sh
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: jdx/mise-action@v4
      # .tool-versions will be read from repo root
      - run: node ./my_app.js

Minimum Release Age

To avoid installing a newly published mise release immediately, set minimum_release_age and omit version:

- uses: jdx/mise-action@v4
  with:
    minimum_release_age: 7d

Relative durations such as 24h, 7d, 6mo, and 1y are supported, as are absolute ISO dates and timestamps. The action selects the newest stable, non-draft mise release published before the cutoff. An explicit version takes precedence over minimum_release_age.

Environment and PATH Export

The action exports environment variables and PATH entries configured by mise to subsequent workflow steps. PATH entries are added individually through GITHUB_PATH, so the runner's complete PATH is not copied into GITHUB_ENV. Set export_path: false to export regular environment variables without persisting mise's PATH changes.

Cache Configuration

You can customize the cache key used by the action:

- uses: jdx/mise-action@v4
  with:
    cache_key: "my-custom-cache-key"  # Override the entire cache key
    cache_key_prefix: "mise-cache-v1"       # Or just change the prefix (default: "mise-v1")

Template Variables in Cache Keys

When using cache_key, you can use template variables to reference internal values:

- uses: jdx/mise-action@v4
  with:
    cache_key: "mise-{{platform}}-{{version}}-{{file_hash}}"
    version: "2026.3.10"
    install_args: "node python"

Available template variables:

  • {{version}} - The mise version (from the version input)
  • {{cache_key_prefix}} - The cache key prefix (from cache_key_prefix input or default)
  • {{platform}} - The target platform, including the runner image (e.g., "linux-x64-ubuntu24", "macos-arm64-macos15", "linux-x64-self-hosted"). The trailing segment is process.env.ImageOS on github-hosted runners and falls back to "self-hosted" elsewhere — preventing cache collisions when the same repo runs on different runner providers (github-hosted, namespace.so, self-hosted).
  • {{file_hash}} - Hash of all mise configuration files
  • {{mise_env}} - The MISE_ENV environment variable value
  • {{install_args_hash}} - SHA256 hash of the sorted tools from install args
  • {{bootstrap_hash}} - SHA256 hash of bootstrap mode, skip list, and args
  • {{default}} - The processed default cache key (useful for extending)

Conditional logic is also supported using Handlebars syntax like {{#if version}}...{{/if}}.

Example using multiple variables:

- uses: jdx/mise-action@v4
  with:
    cache_key: "mise-v1-{{platform}}-{{install_args_hash}}-{{file_hash}}"
    install_args: "node@24 python@3.14"

You can also extend the default cache key:

- uses: jdx/mise-action@v4
  with:
    cache_key: "{{default}}-custom-suffix"
    install_args: "node@24 python@3.14"

This gives you full control over cache invalidation based on the specific aspects that matter to your workflow.

Rust Cache

Rust has a known cache interaction because mise installs Rust through rustup. See jdx/mise-action#215.

GitHub API Rate Limits

When installing tools hosted on GitHub (like gh, node, bun, etc.), mise needs to make API calls to GitHub's releases API. Without authentication, these calls are subject to GitHub's rate limit of 60 requests per hour, which can cause installation failures.

- uses: jdx/mise-action@v4
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    # your other configuration

Note: The action automatically uses ${{ github.token }} as the default, so in most cases you don't need to explicitly provide it. However, if you encounter rate limit errors, make sure the token is being passed correctly.

Lock Files

If a repo mise lock file such as mise.lock is present in the working directory or one of its parents, this action automatically runs mise install --locked. You can still pass install_args; --locked will be added automatically unless you already included it yourself.

This auto-detection is intended for repo-managed config files. If you provide mise_toml or tool_versions inputs, the action does not automatically force locked mode.

Bootstrap

Set bootstrap: true to run mise bootstrap instead of mise install:

- uses: jdx/mise-action@v4
  with:
    bootstrap: true

When a repo mise lock file is present, the action automatically runs mise --locked bootstrap. install_args cannot be combined with bootstrap: true; use bootstrap_skip and bootstrap_args for bootstrap customization.

Alternative Installation

Alternatively, mise is easy to use in GitHub Actions even without this:

jobs:
  build:
    steps:
    - run: |
        curl https://mise.run | sh
        echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH
        echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH