Skip to content

GitHub actions Marp incubator #375

Answered by yhatt
timmens asked this question in Q&A
Nov 20, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you used GitHub hosted runner, all dependency to run Marp CLI are already installed (Node.js, Google Chrome). So you just run npx command as below:

jobs:
  marp:
    runs-on: ubuntu-latest
    steps:
        - run: npx -y @marp-team/[email protected] ./slide.md -o ./output.pdf

See also: https://github.com/marp-team/marp-cli#npx

If you want to use marp command in entire of the workflow for non Node.js project, you can install marp globally in early of workflow steps.
https://github.com/marp-team/marp-cli#global-installation

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timmens
Comment options

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants