Skip to content

include-dcc/include-portal-ui

Repository files navigation

include-portal-ui

Pre-requisites

  • Node 22 (matches CI/Netlify — see NODE_VERSION in the Netlify environment)
  • Docker

Get Started

Environment variables:

Running the project locally

Starting the Bastion

  • Start bastion using: igor

Starting the project

  • Install dependencies: npm install
  • Start the project: npm start

Running the USERS API locally

Deployment

Checkout the dev branch and make sure you are up to date:

git checkout dev
git pull

Release Note

  1. Bump the version with npm version <new-version> --no-git-tag-version. This updates both package.json and package-lock.json together. Never hand-edit the version in only one of the two files — it desyncs the lockfile.

  2. Verify the lockfile is in sync by running npm ci --dry-run locally — it must complete without error. (--dry-run runs the same package.jsonpackage-lock.json sync check Netlify does, but does not delete or reinstall node_modules.)

    ⚠️ If it fails with npm ci can only install packages when your package.json and package-lock.json ... are in sync, run npm install to reconcile the lockfile, then commit the updated package-lock.json.

  3. Update NEWS.md with release notes (ask the Product Owner)

  4. Commit and push directly on dev:

git add package.json package-lock.json NEWS.md
git commit -m "chore: SJIP-000 Release <new-version>"
git push origin dev

⚠️ Keep package.json and package-lock.json in sync. The Netlify build runs npm ci (see the build:netlify script), which refuses to install — and fails the deploy — when the two files disagree. Local npm install / npm start silently auto-heal the lockfile, so drift won't surface until the deploy breaks. Always run npm ci locally before pushing any dependency or version change.

Deploy to PRD

  1. Checkout the main branch and make sure both main and dev are up to date:
git checkout dev && git pull     # make sure dev is current
git checkout main && git pull    # then switch to main, up to date
  1. Merge dev into main:
git merge dev
  1. Push directly on main:
git push origin main
  1. Go to Netlify and make sure the deployment is successful

  2. In Github Compare make sure dev and main branch are sync (no change between them)

  3. In Github Releases draft a new release with the version and the content used in NEWS.md, make sure to target main branch

  4. Move JIRA tickets in Ready to Deploy to Done

  5. Do a quick check on the Include PRD to make sure everything works

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors