Skip to content

Make the publish-preview command more robust #5880

Open
@owenatgov

Description

@owenatgov

What

Investigate the publish-preview npm script to make it more reliable and operable in different circumstances. Some examples of how it could be improved:

  • As time goes on, it takes longer longer to rewrite govuk-frontend's entire commit history
  • If the branch being previewed has an internal release and it has a slash in it's branch name, then the preview version produced will be invalid and the script won't run

There are likely more ways the script could be improved.

Why

The second bullet point was discovered during work on the rebrand where we were in that circumstance and couldn't produce a deploy preview without creating a dummy branch without a slash in the name.

If we want to do more prereleases then this is something we should tackle.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

  • We've investigated ways that the command could be improved
  • We've prioritised those improvements
  • We've applied those improvements

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions