Open
Description
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