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 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" 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 chmod +x $GOPATH/bin/gfmrun
npm install -g markdown-toc
- name: Run Tests - name: Run Tests
run: | run: |

View File

@ -166,7 +166,7 @@ func TocActionFunc(c *cli.Context) error {
filename = "README.md" filename = "README.md"
} }
err := runCmd("npx markdown-toc", "-i", filename) err := runCmd("markdown-toc", "-i", filename)
if err != nil { if err != nil {
return err return err
} }