Skip to content

Commit

Permalink
Docs: Adds Semaphore to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Jan 16, 2025
1 parent 994426d commit 31e746e
Show file tree
Hide file tree
Showing 10 changed files with 614 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/content/ci/azure-pipelines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```yml title="azure-pipelines.yml"
# Other configurations
Expand Down
4 changes: 2 additions & 2 deletions src/content/ci/bitbucket-pipelines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```yml title="bitbucket-pipelines.yml"
# A sample pipeline implementation
Expand Down
4 changes: 2 additions & 2 deletions src/content/ci/circleci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```yml title=".circleci/config.yml"
# Other required configuration
Expand Down
6 changes: 3 additions & 3 deletions src/content/ci/custom-ci-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: "../../layouts/Layout.astro"
title: Automate Chromatic with your custom CI provider
description: Learn how to configure Chromatic with a custom provider
sidebar: { order: 8, label: Other CI providers }
sidebar: { order: 9, label: Other CI providers }
---

import IntegrationSnippets from "../../components/IntegrationSnippets.astro";
Expand Down Expand Up @@ -119,9 +119,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```yml title="your-workflow.yml"
# 👇 Runs Chromatic sequentially for each monorepo subproject.
Expand Down
4 changes: 2 additions & 2 deletions src/content/ci/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```yml title=".gitlab-ci.yml"
# .gitlab-ci.yml
Expand Down
4 changes: 2 additions & 2 deletions src/content/ci/jenkins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ Chromatic can be run on monorepos that have multiple subprojects. Each subprojec
#### Prerequisites

1. Ensure that you're in the correct working directory for the subproject.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the `buildScriptName` parameter and make sure the script is listed in the subproject's `package.json` file.
2. Have `build-storybook` npm script in the subproject's `package.json` file OR explicitly name the script using the using the `--build-script-name` CLI flag and make sure the script is listed in the subproject's `package.json` file.

If you've already built your Storybook in a separate CI step, you can alternatively point the action at the build output using the `storybookBuildDir` parameter.
If you've already built your Storybook in a separate CI step, you can adjust your workflow to include the `--storybook-build-dir` CLI flag to point to the build output directory.

```groovy title="JenkinsFile"
pipeline {
Expand Down
Loading

0 comments on commit 31e746e

Please sign in to comment.