CircleCI Field Guide
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Node.js on CircleCI

Node.js Examples

Node.js projects can use npm or yarn as preferred by the team. We recommend CircleCI orbs for both.

Node with npm

1
2
3
4
5
6
7
8
version: '2.1'
orbs:
  node: circleci/node@5.0
workflows:
  test:
    jobs:
      - node/test:
          test-results-path: junit.xml

Node with yarn

NOTE: Alternate package manager The pkg-manager parameter allows alternate tools like Yarn to be used. Cache and paths will be updated as well.

Read full post gdoc_arrow_right_alt