try install markdown-toc globally

This commit is contained in:
Ajitem Sahasrabuddhe 2020-01-13 10:59:32 +05:30
parent f4f10b5c16
commit f0c866e24c
2 changed files with 2 additions and 1 deletions

View File

@ -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: |

View File

@ -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
}