chore: set Base / Base Sepolia as first config instead of Polygon / Amoy #1215
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Chromatic" | |
| on: push | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Make envfile | |
| uses: SpicyPizza/create-envfile@v2.0 | |
| with: | |
| envkey_REACT_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }} | |
| envkey_STORYBOOK_REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY }} | |
| envkey_STORYBOOK_REACT_APP_MAGIC_API_KEY: ${{ secrets.REACT_APP_MAGIC_API_KEY }} | |
| envkey_STORYBOOK_DATA_IPFS_JWT: ${{ secrets.REACT_APP_PINATA_JWT }} | |
| envkey_STORYBOOK_DATA_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }} | |
| # A dedicated *.mypinata.cloud gateway answers 403 without its token, | |
| # which would leave every story with no metadata and no images. | |
| envkey_STORYBOOK_DATA_IPFS_GATEWAY_TOKEN: ${{ secrets.REACT_APP_IPFS_GATEWAY_TOKEN }} | |
| directory: ./packages/react-kit | |
| file_name: .env | |
| - name: Install dependencies | |
| run: npm ci | |
| - id: build | |
| run: npm run build -- --cache-dir=".turbo" | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| workingDir: packages/react-kit |