/
Tagging the Source Code
Tagging the Source Code
Note that the Infusion 4 release is used as an example in what follows. If you are using these instructions for another release, remember to substitute the correct version number for occurrences of "4.0".
The steps to tag the source code are:
- Impose a source code repository freeze until the source code is tagged. Announce the freeze on the fluid-work mailing list (fluid-work@fluidproject.org).
- Users are prohibited from pushing to the main project repository while the tagging operation is under way.
- Modify the release information in the necessary files, if this hasn't already been done:
- Edit the node package.json file
Set the the version as appropriate, for example:
{ version: "4.0.0" }
- Ensure that the dependencies in json dependency files are up-to-date:
- The dependencies lists must include all of the file that are to be included in the bundle.
- The order of occurrence of the files in each list must take into account any dependencies between the files.
- Commit these changes and push them to the project repository.
- Ensure you are working with an updated clean copy of master from the project repository
Execute:
# using a fresh clone git clone git@github.com:fluid-project/infusion.git # or using a clean master in your current clone # ensure you are on master git checkout master # ensure no uncommitted changes git status -s # fetch the project-repo's (upstream) changes git fetch upstream # ensure no commits in your local master that aren't in the project-repo git log master ^upstream/master # ensure your master is up-to-date with the project-repo git merge upstream/master
- Ensure that the build works.
execute:
# create a package build of infusion npm run build:pkg
- The build will create a
build
directory and aproducts
directory containing the build artifacts. Either of these can be used for testing, but the zip file in the products directory is what should be used for posting the release.
- Run the jqUnit tests (by opening the
all-tests.html
file in a browser), and ensure that all succeed. - Tag the source with the release version number.
Execute:
# create the tag git tag -a v4.0.0
Once the tag is tested and verified to be ok:
- Push the new tag to the public repository.
Execute:
# if working a fresh clone git push origin v4.0.0 # if working in an existing clone git push upstream v4.0.0
Modify the version in the node
package.json
file for the main project repository to reflect that development is now for the next release version. For example:{ version: "5.0.0" }
- Modify the fluid.version in Fluid.js.
- Commit the modifications and push them to the main project repository.
- Lift the prohibition of committing to the project repository by announcing same on the fluid-work mailing list (fluid-work@fluidproject.org).
, multiple selections available,
Related content
Building a Bundle
Building a Bundle
More like this
Contributing Code
Contributing Code
More like this
Managing UIO in a project
Managing UIO in a project
More like this
Infusion 2.x
Infusion 2.x
More like this
Release Process - Announce the Release
Release Process - Announce the Release
More like this
Release Process - Code Freeze and QA
Release Process - Code Freeze and QA
More like this