Giter Site home page Giter Site logo

typst-community / setup-hayagriva Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.07 MB

๐Ÿท๏ธ Installs the Hayagriva CLI for GitHub Actions

License: MIT License

JavaScript 100.00%
action bibliography citations github-action github-actions hayagriva setup-action typst typst-community

setup-hayagriva's Introduction

Setup Hayagriva

๐Ÿท๏ธ Installs the Hayagriva CLI for GitHub Actions

- uses: jcbhmr/setup-hayagriva@v1
- run: hayagriva literature.yml reference --style apa

โœ… Installs the hayagriva CLI globally
๐Ÿ“Œ Supports version pinning
โšก Caches the compiled binary using @actions/cache
๐Ÿ“ฅ Downloads from the Hayagriva GitHub releases

Usage

GitHub Actions GitHub

๐Ÿš€ Here's what you're after:

on: push
jobs:
  job:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: jcbhmr/setup-hayagriva@v1
      - run: hayagriva literature.yml reference

Inputs

  • hayagriva-version: Which version of Hayagriva to install. This can be an exact version specifier such as 0.5.1 or a semver range like ~0.5.0 or 0.x. Use latest to always install the latest release. Defaults to latest.

  • hayagriva-token: The GitHub token to use when fetching the version list from typst/hayagriva. You shouldn't have to touch this. The default is the github.token if you're on github.com or unauthenticated (rate limited) if you're not on github.com.

  • cache: Whether or not to use the workflow cache to cache the compiled hayagriva binary for future runs.

Outputs

  • hayagriva-version: The version of Hayagriva that was installed. This will be something like 0.5.1 or similar.

  • cache-hit: Whether or not Hayagriva was restored from the runner's cache or download anew.

Development

Bun GitHub Actions

This GitHub Action uses Bun to bundle the main entry point plus all the imported dependencies into a single .js file ready to be run by main: dist/main.js in the action.yml. To test the action just open a PR (even a draft one) and some magic GitHub Actions will test your changes. ๐Ÿง™โ€โ™‚๏ธ

โ„น Once Bun gets Windows support make sure you add back the runs-on: windows-latest test to test-action.yml.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.