fixed bottomSheetComponent #206
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: Build PR Preview | |
| on: | |
| pull_request: | |
| branches: [master] | |
| types: [opened, synchronize, reopened, closed] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: preview-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| if: github.event.action != 'closed' | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout PR | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: "22" | |
| cache: 'npm' | |
| - name: Gatsby Cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| .cache | |
| key: ${{ runner.os }}-gatsby-${{ github.event.pull_request.number }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-gatsby-${{ github.event.pull_request.number }}- | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build PR preview | |
| env: | |
| GATSBY_PREVIEW: "true" | |
| GATSBY_SITE_URL: https://${{ github.repository_owner }}.github.io | |
| run: | | |
| export PATH_PREFIX=pr-preview/pr-${{ github.event.pull_request.number }} | |
| npm run build:preview | |
| echo -e "User-agent: *\nDisallow: /" > public/robots.txt | |
| - name: Save Metadata | |
| run: | | |
| mkdir -p pr-meta | |
| echo "${{ github.event.action }}" > pr-meta/action | |
| echo "${{ github.event.number }}" > pr-meta/number | |
| echo "${{ github.event.pull_request.head.sha }}" > pr-meta/sha | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: pr-preview | |
| path: | | |
| public/ | |
| pr-meta/ | |
| if-no-files-found: error | |
| retention-days: 7 |