From f0c866e24cc94877b0aa884ec31df99e34ba563f Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Mon, 13 Jan 2020 10:59:32 +0530 Subject: [PATCH] try install markdown-toc globally --- .github/workflows/cli.yml | 1 + build.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 }