This page contains the setup guide for the previous version of the agent (v4). Go to agent v5 to follow the setup guide for the latest stable version.
Update Circle CI configuration
Update .circleci/config.yml
to run @relative-ci/agent after the build.
.circleci/config.yml
version: 2jobs: build: steps: - run: name: Build application & webpack stats command: npm run build --json webpack-stats.json - run: name: Send build stats to Relative CI command: npx relative-ci-agent
Run from the project root directory
Since @relative-ci/agent@v4.1.0, you can run the CLI from the project root directory using --config-dir
/ -c
argument:
npx relative-ci-agent --config-dir packages/components