🗒️ Docs - Mention new parse field for filename customization #11180
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: Node CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| env: | |
| NEXT_PUBLIC_TINA_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_TINA_CLIENT_ID }} | |
| TINA_TOKEN: ${{ secrets.TINA_TOKEN }} | |
| NEXT_PUBLIC_TINA_BRANCH: ${{ github.head_ref }} | |
| NODE_OPTIONS: '--max_old_space_size=4096' | |
| TINA_SEARCH_TOKEN: ${{ secrets.TINA_SEARCH_TOKEN }} | |
| UNOPTIMIZED_IMAGES: 'true' | |
| GISCUS_ORG: 'tinacms' | |
| GISCUS_REPO_NAME: 'tina.io' | |
| GISCUS_CATEGORY: 'Tina Blog Discussions' | |
| GISCUS_REPO_ID: ${{ secrets.GISCUS_REPO_ID}} | |
| GISCUS_CATEGORY_ID: ${{ secrets.GISCUS_CATEGORY_ID }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'pnpm' | |
| - name: Cache pnpm dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.pnpm-store | |
| node_modules | |
| .pnpm | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm- | |
| - name: Cache Next.js build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- | |
| ${{ runner.os }}-nextjs- | |
| - name: pnpm install | |
| run: pnpm i | |
| - name: Rebuild native modules | |
| run: pnpm rebuild | |
| - name: pnpm build | |
| run: pnpm build | |
| - name: pnpm lint | |
| run: pnpm lint | |
| - name: pnpm test | |
| run: pnpm test | |
| env: | |
| CI: true | |
| - name: pnpm export | |
| run: | | |
| pnpm export | |
| env: | |
| CI: true | |
| - name: 📉 Check HTML | |
| uses: anishathalye/proof-html@v1.4.0 | |
| with: | |
| directory: './out' | |
| enforce_https: false | |
| check_img_http: false | |
| check_external_hash: false | |
| empty_alt_ignore: true | |
| url_ignore_re: '/.+\/(blog|404)\/.+/' |