Before you get started, you will need clones of devtools-core and mozilla-central, as well as a Bugzilla account.
-
Prepare devtools-reps release
- Create a release branch on github
- Update minor version in package.json, reset build version: devtools-reps-X.N.Y -> devtools-reps-X.N+1.0
- Commit
release: bump version to devtools-reps-X.N+1.0
- Create a PR on Github for this release
- Make sure you have a
packages/devtools-reps/configs/local.json
file, withfirefox.mcPath
pointing to your mozilla-central clone
-
Copy to mozilla central
- Update your mozilla-central clone to the latest
- Create a new mercurial bookmark (or a local branch if you use git-cinnabar)
- Navigate to the reps folder:
cd packages/devtools-reps
- And run
yarn copy-assets
- Create a new bug in Developer Tools: Shared Components
- Commit 'Bug XXX - devtools-reps v0.N+1.0: update reps bundle from GitHub;r=reviewer', where XXX is the number of the bug you created in
2.v.
.
-
Validate & cleanup
- Push to try, test locally, submit for review etc ...
- While try fails or some problem is detected, go back to devtools-reps, fix the issue, create a new bundle and go back to
2.i.
- When everything is fine and the patch is r+, land on autoland/inbound
- Merge the PR on github
- Create a tag for devtools-reps-X.N+1.0 on github
After that any issue with the bundle should be addressed with a new build version. Ideally, if the bundle has to be updated in mozilla-central for a bugfix, a corresponding tag should be created on GitHub.
Steps to publish to npm :
- Get new tags from remote:
git fetch --tags
- Checkout the tag created for the release:
git checkout tags/devtools-reps-X.N+1.0
- Navigate to the reps folder:
cd packages/devtools-reps
- Log in nom (Might ask your npm username and password):
npm login
- Publish the package:
npm publish
To be able to publish a new version of the package on npm, you need to :
- have an npm account and
- be a collaborator on the package.
If you want to become a collaborator on the Reps package, please ask the other collaborators, either through IRC or Slack, or by filing an issue in this repo.