Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: fix viewer deploy #6449

Merged
merged 1 commit into from
Nov 2, 2018
Merged

misc: fix viewer deploy #6449

merged 1 commit into from
Nov 2, 2018

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented Nov 1, 2018

fix bug introduced by #6426

Our version of the gh-pages npm package was really old, but I brought over the exact same version as before because it was working so why risk it. However, #6426 also tried to use dest from the docs (which wasn't supported in the old version) and it tried to promisify the whole thing. That should have worked (error-first callback as the last argument), but it looks like there was some incompatibility.

This PR

  • updates the gh-pages package
  • wraps ghPages.publish in an explicit promise
  • adds a nicer gh-pages branch commit message than Updates, with the lighthouse version number in it

It took two test commits and a revert, but verified that it is working and deploying now :)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

ghPages.publish(distDir, {
add: true, // keep existing files
dest: 'viewer',
message: `Update viewer to lighthouse@${lighthousePackage.version}`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paulirish paulirish merged commit 09ce547 into master Nov 2, 2018
@paulirish paulirish deleted the deployviewer branch November 2, 2018 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants