Skip to content

TomVer99/typst-check-deps

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst Dependency Checker Action

Maintenance GitHub release (with filter) GitHub License

GitHub Super-Linter CI Check dist/ CodeQL Coverage

GitHub Repo stars Issues GitHub commits since latest release

This GitHub Action checks for outdated dependencies in your Typst project.


Support this project: If you find this action valuable, please consider leaving a star to help others discover it,
or buy me a coffee to support its development!
BuyMeACoffee

Features

  • Scans imported packages in Typst files and reports if newer versions are available on Typst Universe
  • Adds a comment to pull requests with a summary table of dependencies

Disclaimers ⚠️

🔍
Currently, this action only works with a Typst TOML file located in the root directory of your repository. It will NOT work in any other case.

🔍
Also, due to the fact that Typst Universe does not have an official API, the action relies on web scraping to get the latest version information. It is therefore not recommended for use in production environments.

Planned Features

v1.0.0 [Milestone]

  • Update comment on PR to avoid multiple comments #6
  • Use GitHub as source of truth for latest versions instead of Typst Universe #7
  • Improve comment formatting #8
  • Increase test coverage to 80%+ #9

v1.0.0+

  • Support for other project types
    • Allow user to specify path(s) to project file(s)
    • Automatically detect of no TOML is found in root, and scan for project files

Usage

Add the following to your GitHub Actions workflow file (e.g. .github/workflows/deps-check.yml):

name: Check Typst deps

on:
  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  check-deps:
    permissions:
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run Typst Dependency Checker
        uses: TomVer99/typst-check-deps@v0.1.0
        id: deps
        with:
          fail-on-newer-version: false

      - name: Post results as PR comment
        uses: peter-evans/create-or-update-comment@v4
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          repository: ${{ github.repository }}
          issue-number: ${{ github.event.pull_request.number }}
          body: ${{ steps.deps.outputs.table }}

Inputs

  • fail-on-newer-version (optional, boolean) — If true, the action fails the job when a newer version is detected. Default: false. (can be used to fail CI when outdated dependencies are found)

About

An easy to use and automated method to make sure your Typst dependencies/imports are up to date

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors

Generated from actions/typescript-action