This action installs and configures UTPM (Unofficial Typst Package Manager).
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup UTPM
uses: typst-community/setup-utpm@v1
with:
version: 'latest' # or specific version like '0.2.0'
- name: Use UTPM
run: utpm --version| Name | Description | Default | Required |
|---|---|---|---|
version |
Version of UTPM to install (e.g., "0.3.0" or "latest") | 'latest' |
No |
token |
GitHub token for API requests (to avoid rate limiting) | ${{ github.token }} |
No |
| Name | Description |
|---|---|
version |
The installed version of UTPM |
cache-hit |
Whether the installation was restored from cache |
This action is written in TypeScript. To build and package it:
# Install dependencies
npm install
# Build TypeScript to JavaScript
npm run build
# Package the action for distribution (includes dependencies)
npm run packageThe compiled action is in dist/index.js and must be committed to the repository for the action to work.
For more details, please visit the GitHub repository and navigate to /docs/ACTION.md.
The scripts and documentation in this project are released under the MIT License.