diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 18336e8..e076cec 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -49,6 +49,7 @@ jobs: mkdir -p $GOPATH/bin curl -L -o $GOPATH/bin/gfmrun "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-$(go env GOOS)-amd64-v1.2.14" chmod +x $GOPATH/bin/gfmrun + npm install -g markdown-toc - name: Run Tests run: | diff --git a/build.go b/build.go index 9415568..5a6415a 100644 --- a/build.go +++ b/build.go @@ -166,7 +166,7 @@ func TocActionFunc(c *cli.Context) error { filename = "README.md" } - err := runCmd("npx markdown-toc", "-i", filename) + err := runCmd("markdown-toc", "-i", filename) if err != nil { return err }