Skip to content

Commit

Permalink
Update prerelease invoke command to call with explicit path
Browse files Browse the repository at this point in the history
Run gh-changelog with full path, in case env does not have node set up.
  • Loading branch information
agjohnson committed Dec 14, 2017
1 parent 1a053bd commit c849321
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ def prepare(ctx, version):
'contrib',
'changelog.hbs',
)
bin_path = os.path.join(
os.path.dirname(__file__),
'node_modules',
'.bin',
)
cmd = (
'gh-changelog '
'{bin_path}/gh-changelog '
'-o rtfd -r readthedocs.org '
'--file {changelog_path} '
'--template {template_path} '
'--header "Version {version}"'
).format(
bin_path=bin_path,
version=version,
template_path=template_path,
changelog_path=changelog_path,
Expand Down

0 comments on commit c849321

Please sign in to comment.