Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit09150fa

Browse files
committed
Improve comments
1 parentcf8975e commit09150fa

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

‎.github/workflows/chromatic.yaml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1+
# Note: Chromatic is a separate workflow for coder.yaml as suggested by the
2+
# chromatic docs. Explicitly, Chromatic works best on 'push' instead of other
3+
# event types (like pull request), keep in mind that it works build-over-build
4+
# by storing snapshots.
5+
#
6+
# SEE: https://www.chromatic.com/docs/ci
17
name:"Chromatic"
28

9+
# Chromatic works best with push events, not pull_request or other event types.
310
on:push
411

512
jobs:
613
chromatic-deployment:
14+
# REMARK: this is only used to build storybook and deploy it to Chromatic.
715
runs-on:ubuntu-latest
816

917
steps:
1018
-uses:actions/checkout@v3
1119
with:
12-
fetch-depth:0# <-- required by Chromatic for build-over-build history
20+
# Required by Chromatic for build-over-build history, otherwise we
21+
# only get 1 commit on shallow checkout.
22+
fetch-depth:0
1323

1424
-name:Install dependencies
1525
run:cd site && yarn
@@ -28,7 +38,9 @@ jobs:
2838
# This is a separate step for mainline only that auto accepts and changes
2939
# instead of holding CI up. Since we squash/merge, this is defensive to
3040
# avoid the same changeset from requiring review once squashed into
31-
# main.
41+
# main. Chromatic is supposed to be able to detect that we use squash
42+
# commits, but it's good to be defensive in case, otherwise CI remains
43+
# infinitely "in progress" in mainline unless we re-review each build.
3244
-name:Publish to Chromatic (mainline)
3345
if:github.ref == 'refs/heads/main'
3446
uses:chromaui/action@v1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp