mojaloop/build is a CircleCI orb for node.js build jobs in Mojaloop CI/CD pipelines
To use the mojaloop/build
orb in your CircleCI configuration, turn on
Enable dynamic config using setup workflows
in the Advanced Settings
of your
project settings CircleCI. Then include the following in your .circleci/config.yml
:
version: 2.1
setup: true
orbs:
build: mojaloop/[email protected]
workflows:
setup:
jobs:
- build/workflow:
filters:
tags:
only: /v\d+(\.\d+){2}(-[a-zA-Z-][0-9a-zA-Z-]*\.\d+)?/
# optionally supply the base image for the image scan
# base_image: org/image
Conventions:
- If a
Dockerfile
is present in the root of the repository, it will be used to build and publish an image. - If a
package.json
is present in the root of the repository and it does not have private=true, the package will be published to npm for the applicable branches and tags. - The following scripts are expected in the
package.json
file:lint
dep:check
audit:check
test:xunit
test:integration
test:functional
test:coverage-check
CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described.
CircleCI Orb Docs - Docs for using, creating, and publishing CircleCI Orbs.
We welcome issues to and pull requests against this repository!
- Merge pull requests with desired changes to the main branch.
- For the best experience, squash-and-merge and use Conventional Commit Messages.
- Find the current version of the orb.
- You can run
circleci orb info mojaloop/build | grep "Latest"
to see the current version.
- You can run
- Create a new Release
on GitHub.
- Click "Choose a tag" and create a new semantically versioned tag. (ex: v1.0.0)
- We will have an opportunity to change this before we publish if needed after the next step.
- Click "+ Auto-generate release notes".
- This will create a summary of all of the merged pull requests since the previous release.
- If you have used Conventional Commit Messages it will be easy to determine what types of changes were made, allowing you to ensure the correct version tag is being published.
- Now ensure the version tag selected is semantically accurate based on the changes included.
- Click "Publish Release".
- This will push a new tag and trigger your publishing pipeline on CircleCI.