.circleci/config.yml
configuration for multiple Node jobscircleci/node
orb is imported (Which makes some node operations easier), then a release
job is defined which will run semantic-release
.release
job, we have created a workflow named test_and_release
which will run two jobs, node/test
, which comes from the node orb and will test our application, and our release job. Here, we are actually making use of matrix jobs so that our single node/test
job will actually be executed twice, once for Node version 16, and once for version 14. Finally, we call our release job with a requires
parameter so that release
will run against the latest LTS version of node, only after node/test
has successfully tested against v14 and v16.