typst-community / setup-hayagriva

🏷️ Installs the Hayagriva CLI for GitHub Actions
MIT License
2 stars 0 forks source link
action bibliography citations github-action github-actions hayagriva setup-action typst typst-community

Setup Hayagriva

🏷️ Installs the Hayagriva CLI for GitHub Actions

```yaml - 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

Outputs

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.