Remark: GitHub Action?

Created on 4 Jan 2020  路  4Comments  路  Source: remarkjs/remark

I was looking for a GitHub Action to validate links in markdown files on every push / Pull Request and thought that remark would be really great combined with the remark-validate-links plugin.

Do you know if anybody tried to used remark as a GitHub Action?

I guess one more common usage is to do it locally on a pre-commit hook maybe?

馃彈 aretools 馃憖 areexternal 馃檵 typquestion

Most helpful comment

I think so

All 4 comments

People typically use remark-cli in an npm script, often with a preset such as this one (which can include remark-validate-links, remark-lint, and the like).
One benefit of remark and those presets is that you can set up a pipeline that transforms and formats markdown too (e.g., remark-toc)

It鈥檚 possible to do these things in actions too!

unified, the parent project of remark, uses remark cli to check markdown contents in a github action.
https://github.com/unifiedjs/unified/blob/master/.github/workflows/ci.yml as part of npm test.

@ChristianMurphy I think we can close this?

I think so

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kentcdodds picture kentcdodds  路  4Comments

CxRes picture CxRes  路  4Comments

renekliment picture renekliment  路  5Comments

soroushm picture soroushm  路  6Comments

KyleAMathews picture KyleAMathews  路  6Comments