Merge pull request #1132 from web3ui/dk-exports-package-json #773
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: Updating the StoryBook Docs frontend | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build, lint, test on ubuntu-latest and deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8.15.9 | |
| - name: Use Node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Check REACT_APP_MORALIS_APP_ID | |
| run: echo "REACT_APP_MORALIS_APP_ID=${{ secrets.REACT_APP_MORALIS_APP_ID }}" | |
| - name: Check NPM_TOKEN | |
| run: echo "MORALIS_APP_ID=${{ secrets.NPM_TOKEN }}" | |
| - name: Install | |
| run: pnpm install | |
| - name: Install Github Pages | |
| run: pnpm add -Dw gh-pages | |
| - name: Build | |
| run: pnpm build | |
| # - name: Test | |
| # run: pnpm vitest --run --update | |
| - name: Check MORALIS_APP_ID | |
| run: echo "MORALIS_APP_ID=${{ secrets.MORALIS_APP_ID }}" | |
| - name: Build Storybook | |
| run: pnpm build-storybook | |
| env: | |
| STORYBOOK_MORALIS_APPLICATION_ID: ${{ secrets.STORYBOOK_MORALIS_APP_ID }} | |
| STORYBOOK_MORALIS_SERVER_URL: ${{ secrets.STORYBOOK_MORALIS_SERVER_URL }} | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist/storybook |