Skip to content

Commit

Permalink
Add steps for running builds with local CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 30, 2024
1 parent acbfeef commit eaf998e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,29 @@ To only test a small number of test stories as a smoke test, use:
SMOKE_TEST=1 CHROMATIC_INDEX_URL=https://index.dev-chromatic.com yarn chromatic -t <token>
```

### Running another project against local CLI

1. Navigate to the project you'd like to run builds against
2. Add `chromatic` to your dependencies

```
yarn add chromatic
```

3. Use [yarn link](https://yarnpkg.com/cli/link) to symlink your local CLI repo

Check notice on line 41 in docs/DEVELOPMENT.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docs/DEVELOPMENT.md#L41

Expected: 1; Actual: 3; Style: 1/1/1

```
yarn link /path/to/cli/repo
```

4. Run your build

Check notice on line 47 in docs/DEVELOPMENT.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docs/DEVELOPMENT.md#L47

Expected: 1; Actual: 4; Style: 1/1/1

```
yarn chromatic -t <token>
```

You can also combine this with the `CHROMATIC_INDEX_URL` environment variable to run the build against different versions of Chromatic.

## Publishing a new version

We use `auto` to automate the release process. Versions are bumped, tags are created and the changelog is updated automatically. A new release goes out whenever a PR is merged to `main`. A PR **must** have **exactly one** of the following labels before merging:
Expand Down

0 comments on commit eaf998e

Please sign in to comment.