Skip to content

Template project for Lerna multi-package monorepo integrated with Gitlab CI/CD to push Gitlab private packages registry.

Notifications You must be signed in to change notification settings

LorenzoRottigni/cicd-gitlab-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD Gitlab Registry Template

This is a template repository containing a basic integration between:

  • GitLab CI/CD
  • GitLab (public/private) Package Registry
  • GitLab Repo
  • Lerna monorepo

Packages under the "packages" directory containing a valid package.json are automatically included in Lerna management.

CI/CD

The .gitlab-ci.yml file will automatically handle the build, setup, versioning, and publishing of all packages.

It uses a custom versioning strategy "x.y.z-" to allow complete automation of the process.

The pipeline will automatically publish packages accordingly to the registry, and through an automated push, it updates version tags inside the repository.

It requires a few CI/CD custom variables:

  • CICD_PAT: Personal access token to allow pipeline R/W operations
  • PACKAGE_SCOPE: Package scope (e.g., @lr-labs)
  • PACKAGE_REGISTRY: Path to GitLab package registry repository //.git (e.g., /lr-labs/alpha)

About

Template project for Lerna multi-package monorepo integrated with Gitlab CI/CD to push Gitlab private packages registry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published