-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a new release
In this document, we'll cover:
- 1. Update Foundation (if needed)
- 2. Create a release commit
- 3. Merge
develop
intomaster
- 4. Update Bower dependencies (optional)
- 5. Tag the new release
- 6. Push to Github and edit the release page
- 7. Deploy the new release
- 8. Communication
All development should occur in the develop
branch. When you're ready to create a new release, follow these instructions starting from the develop
branch.
If changes to the develop
branch include any Foundation updates, first create a new release of Foundation. Framework releases should always reference a stable tag of Foundation.
The develop
branch of the Framework is referencing the develop
branch of Foundation. After you've created the Foundation release you can run bower update
to pull in those changes to the Framework prior to release. This ensures that the generated stylesheets and javascripts are current with the latest Foundation release.
Update the version number in package.json
, run grunt version
and grunt build
and add a section in CHANGELOG.md
describing changes introduced by this release.
The following files should show changes:
- CHANGELOG.md
- css-dev/style.scss
- functions.php
- ie.css
- ie.min.css
- package.json
- style.css
- style.min.css
Stage all changes and commit using "Version bump to x.x.x" as the commit message.
In the left panel under "Branches" checkout the master
branch and then click and drag develop
on top of master
to merge. Make sure that "Always generate a merge commit" is checked.
If you created a Foundation release above, now's the time to update bower.json
to point to the shiny new stable tag and run bower install
to update bower_components
. Create a commit with these changes (e.g. "Version bumps in bower.json").
In the left panel under "Branches" right-click on the master
branch and select "Create new tag from "master"...". Enter the tag number and a simple message ("Release x.x.x.").
Push the master
branch to Github and curate the resulting entry in the releases page (https://github.com/bu-ist/responsive-framework/releases). When pushing, make sure that "Push All Tags" is checked under "Options". If you forget, you can always right-click on the tag and click "Publish Tag".
Deploy the new release to NM sandbox and production using WP Deploy. Make sure to select the latest tag in WP Deploy.
Paste the release link in Slack (#cms) using @channel (e.g. https://github.com/bu-ist/responsive-framework/releases/tag/1.0.1).
Get started
Configuration
Build child themes
- Customizing CSS in a child theme
- Overriding templates in a child theme
- Code patterns
- Code reviews
- Pulling in Foundation Updates
- Merging and Creating a Pull Request
Sass
Javascript
PHP
- Coding Standards
- PHP Constants
- Temp PHP Code Patterns
- PHP Snippets
- How to Use Hooks
- Action Hooks
- Using Action Hooks To Output Markup
- Filter Hooks
Shortcodes
Templates
GitHub
Tasks
Contribute to the framework
- Framework Development and Release Workflows
- Documentation Template
- Testing your changes
- Creating a new release
- Migration Guide
- Needs Documentation
Code Examples
- Adding Content Container Classes
- Adding News Templates
- Adding Script Dependencies
- Changing Available Layouts and Default Layout
- Displaying a Fancy Gallery
- Loading a Custom Build of Modernizr
- Loading Modernizr in the Footer
- Using Action Hooks To Output Markup
- Understanding get_template_part
BU Developer Resources