use npx to run the package instead of npm installing it
This commit is contained in:
parent
0b3b172855
commit
3e125a1865
1
.github/workflows/cli.yml
vendored
1
.github/workflows/cli.yml
vendored
@ -44,7 +44,6 @@ 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 markdown-toc
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
2
build.go
2
build.go
@ -166,7 +166,7 @@ func TocActionFunc(c *cli.Context) error {
|
|||||||
filename = "README.md"
|
filename = "README.md"
|
||||||
}
|
}
|
||||||
|
|
||||||
err := runCmd("node_modules/.bin/markdown-toc", "-i", filename)
|
err := runCmd("npx markdown-toc", "-i", filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user