Skip to content

Instantly share code, notes, and snippets.

@VitorTheGreat
Last active December 15, 2022 16:50
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save VitorTheGreat/d75589c76076430bb5f0fcc935a358b7 to your computer and use it in GitHub Desktop.
Save VitorTheGreat/d75589c76076430bb5f0fcc935a358b7 to your computer and use it in GitHub Desktop.

GitFlow & Vtex IO - Workflow commands

  1. All PRs approved to branch develop and then Deleted from remote after approval

  2. Update develop locally

    git checkout develop && git pull origin develop 
    

    2.1. Delete your branch locally

    git branch -D BRANCH-DA-PR-FECHADA 
    
    • obs: DO NOT USE GIT FLOW TO FINISH/DELETE THE BRANCH!
  3. Change to/Create the production workspace

    vtex use homologprod --production 
    
  4. Release the new version following the semantic version

    4.1 To release a version that is not the final one run:

    vtex release pre
    

    4.2 To release a version that is the final one (or should be) run:

    vtex release <minor/patch> stable 
    
  5. Install the new release in the production workspace

    vtex install <vendor>.<app-name>@<version> or vtex install
    
    • e.g: vtex install trinketshop.trinketshop-app@0.0.2
  6. QA Phase and register everything within the cms site-editor. Make sure everything is ok and ready to go to production

  7. After QA approved, promote the workspace to master

    vtex workspace promote 
    
    • obs: this will delete the workspace and transfer all the data from CMS/SITE-EDITOR to master enviroment
  8. After tested live, deploy the new version

    vtex deploy <vendor>.<app-name>@<version> 
    

    e.g: vtex deploy trinketshop.trinketshop-app@0.0.2

  9. Be happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment