Skip to content

Commit

Permalink
Fix: old code in deploy.md
Browse files Browse the repository at this point in the history
  • Loading branch information
UHAsikakutou committed Jun 6, 2024
1 parent 2c5f118 commit 5b39556
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions content/intro-to-storybook/react/ja/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Storybook をデプロイするには、まず静的サイトとしてエクス
git remote add origin https://github.com/<GitHubのユーザ名>/taskbox.git
```

最後にローカルリポジトリを GitHub のリモートリポジトリにプッシュします:
最後にローカルリポジトリを GitHub のリモートリポジトリにプッシュします

```shell
git push -u origin main
Expand Down Expand Up @@ -81,28 +81,28 @@ yarn chromatic --project-token=<project-token>
`chromatic.yml` を以下の内容で新規に作成します。

```yaml:title=.github/workflows/chromatic.yml
# ワークフローの名前
# Workflow name
name: 'Chromatic Deployment'
# ワークフローのトリガー
# Event for the workflow
on: push
# ジョブの定義
# List of jobs
jobs:
test:
# OS
# Operating System
runs-on: ubuntu-latest
# ステップの定義
# Job steps
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: yarn
#👇 Chromaticをワークフローのステップとして追加
- uses: chromaui/action@v1
# ChromaticのGitHub アクションに必要な設定
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@latest
# Options required for Chromatic's GitHub Action
with:
#👇 先ほど取得したChromaticのprojectToken
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/ to obtain it
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down

0 comments on commit 5b39556

Please sign in to comment.