feat(core-sdk): create cli package for the core-sdk #1119
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 }} | |
| directory: ./packages/react-kit | |
| file_name: .env | |
| - run: cat .env | |
| working-directory: ./packages/react-kit | |
| - 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 |