This repository contains a rollup of commonly used eslint rules configuration/setup as an npm package for use with National Cancer Institute(NCI) projects.
Package name | Description |
---|---|
eslint-config-react |
Shared eslint-config for react-based projects |
eslint-config-vanilla-js |
Shared eslint-config for javascript projects |
eslint-config-vanilla-ts |
Shared eslint-config for typescript projects |
When publishing, the test apps should not be published. The test-app package.jsons have private: true
to prevent publishing. At some point much of this will be automated, but for now here are the steps.
- Version all the packages.
lerna version --no-git-tag-version X.Y.Z-alpha-DD
where X, Y, Z and DD are numbers. Whatever this is, it must be unique.
- Publish the packages
lerna publish --force-publish --no-push --yes from-package
NOTE: This will update the package.json files everywhere. Try not to commit those changes - we don't want a bunch of commits littering our history just for beta version bumps.
- Create release branch
- This will be of the format
release/vX.Y.Z
(This should be greater than whatever the current version is) - Technically we should test a beta version of the release here.
- This will be of the format
- Version all the packages.
lerna version --no-git-tag-version X.Y.Z
where X, Y, and Z are numbers. (This should be greater than whatever the current version is)- NOTE There is no
v
at the beginning of the version!!
- NOTE There is no
- Merge the release to main
- Checkout main
git checkout main
- Make sure you are up to date
git pull
- Merge the release branch
git merge --no-ff release/vX.Y.Z -m "Merging release vX.Y.Z"
- Push the main branch
git push
- Create the release
hub release create -t release/vX.Y.Z -m "vX.Y.Z Release" vX.Y.Z
- Checkout main
- Publish the packages. This uses the version from all the package.json files and avoids running lerna version, as well as skip pushing a commit. I.E. It just publishes.
lerna publish --force-publish --no-push --yes from-package
- Merge to develop
- Checkout develop
git checkout develop
- Make sure you are up to date
git pull
- Merge the release branch
git merge --no-ff release/vX.Y.Z -m "Merging release vX.Y.Z"
- Push the main branch
git push
- Checkout develop
- Remove the release branch.