diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index a613332..d2c8807 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,13 +1,19 @@ name: Setup -description: Setup Node.js and install dependencies +description: Setup tools from .mise.toml and install dependencies + +inputs: + tools: + description: Space-separated list of .mise.toml tools to install (Yarn is vendored in .yarn/releases) + required: false + default: node runs: using: composite steps: - - name: Setup Node.js - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + - name: Setup tools with mise + uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0 with: - node-version-file: .nvmrc + install_args: ${{ inputs.tools }} - name: Restore dependencies id: yarn-cache diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c052812..1d1be13 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -121,6 +121,8 @@ jobs: - name: Setup uses: ./.github/actions/setup + with: + tools: node ruby - name: Cache turborepo for iOS uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e54ddee..5946cbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -155,6 +155,8 @@ jobs: - name: Setup uses: ./.github/actions/setup + with: + tools: node ruby - name: Cache turborepo for iOS uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 diff --git a/.mise.toml b/.mise.toml index e87d152..401c8c6 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,5 +1,4 @@ -[min_version] -mise = "2024" +min_version = "2024.1.0" [tools] node = "22.20.0"