Skip to content

Commit

Permalink
Merge branch 'master' into doc-update-pr-template
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Jan 13, 2020
2 parents 78ba678 + d46d4ee commit fd475c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Set GOPATH and PATH
run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
Expand All @@ -44,7 +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 markdown-toc
npm install -g markdown-toc@1.2.0
- name: Run Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TocActionFunc(c *cli.Context) error {
filename = "README.md"
}

err := runCmd("node_modules/.bin/markdown-toc", "-i", filename)
err := runCmd("markdown-toc", "-i", filename)
if err != nil {
return err
}
Expand Down

0 comments on commit fd475c4

Please sign in to comment.