FLUID-5799: Reduce fragility of standard workflow of fluid-publish

Metadata

Source
FLUID-5799
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Justin Obara
Reporter
Antranig Basman
Created
2015-10-27T11:59:50.751-0400
Updated
2018-03-15T14:59:38.158-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Build Scripts
  2. Release

Description

The "standard" workflow of fluid-publish is a bit fragile -

i) it depends on the existence of a git remote named "upstream" - at the very least we should document this clearly, and, if possible, add a CLI task that can take this as a copy from an existing remote in order to assist the user

ii) if part of the workflow is already complete, the plugin will bomb out -

$ node publish.js --standard
fatal: tag 'v1.1.0' already exists
child_process.js:484
throw err;
^

Error: Command failed: git tag -a v1.1.0 -m 'Tagging the 1.1.0 release'
fatal: tag 'v1.1.0' already exists

In cases like this there should be some assistance to the user in how they could get the task to run - perhaps a command hint that they could run to get the repo into a suitable condition

iii) It would be nice if the default behaviour of the plugin in all cases was to echo commands that it was executing to the terminal as an indicator of progress

Comments