This section describes three types of releases:
- Cutting a release of the Style Guide for public consumers
- Deploying changes to github pages only
- Deploying changes for only consumption by our D8 site
WARNING: This should only be run on the develop
branch!*
- Make sure you are running the most up-to-date code
- Updates will be rejected if they are non-fast-forward
- Update
package.json
with the new version number. npm install
to update the package-lock.json filegulp release
to build the files correctly, cut a tag, and deploy the files togh-pages
,dev-assets
, andmaster
.- Navigate to the latest release to see the new release and add notes.
Initial config via TutsPlus.
*Note: To base a release on a specific commit, for example when the develop
branch has had other PRs committed that should not be included in the release, do the following:
- Check out the commit from which you'd like to deploy.
- Run
gulp release
to deploy the release from that commit.
gulp deploy
to build the production ready code and push to thegh-pages
branch for display on https://americanmedicalassociation.github.io/AMA-style-guide/.
gulp drupal-deploy
to deploy changes to thedev-assets
branch for consumption by Drupal or another CMS.