Skip to content

Repository files navigation

setup-utoo

GitHub Action for setting up Utoo - a unified frontend toolchain.

Usage

Basic Setup

- uses: utooland/setup-utoo@v1with:
utoo-version: "latest"

Custom Registry

- uses: utooland/setup-utoo@v1with:
utoo-version: "1.0.0"registry: "https://registry.npmjs.org/"

Cache Configuration

Cache installed Utoo binary to avoid reinstallation:

- uses: utooland/setup-utoo@v1with:
utoo-version: "latest"# Works with 'latest', version ranges, or specific versionscache-utoo: true # Cache the installed Utoo binary

Cache npm store for faster package installations:

- uses: utooland/setup-utoo@v1with:
utoo-version: "latest"cache-store: true # Cache ~/.cache/nm directory

Inputs

InputDescriptionDefault
utoo-versionThe version of Utoo to install (e.g. "latest", "1.0.0", "1.0.x")latest
registryThe URL of the npm registry to use for installing Utoohttps://registry.npmjs.org/
cache-utooCache installed Utoo commands to avoid reinstallation on subsequent runs. Automatically resolves "latest" to actual version for proper cache invalidation.true
cache-storeCache npm store directory (~/.cache/nm) for faster package installationsfalse

Outputs

OutputDescription
utoo-versionThe version of Utoo that was installed
utoo-pathThe command path added to PATH
cache-hitWhether Utoo was restored from the cache

Example Workflow

name: Build with Utooon: [push, pull_request]jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: utooland/setup-utoo@v1with:
utoo-version: "latest"
- name: Install dependenciesrun: utoo
- name: Build projectrun: utoo build

Features

  • Registry Support: Configure custom npm registries
  • Dual Cache Support:
    • Utoo Command Cache: Cache the installed Utoo package and command shims
    • NPM Store Cache: Cache npm packages in ~/.cache/nm for faster package installations
  • Cross-platform: Works on Ubuntu, macOS, and Windows
  • Version Management: Support for specific versions and ranges

License

MIT

About

github actions for utoo

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages