Add issue templates (bug report / feature request) #16
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: Deploy PR preview | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, closed] | |
| concurrency: preview-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| deploy-preview: | |
| # Preview deploys push to this repo's gh-pages branch, which the | |
| # read-only GITHUB_TOKEN of a fork PR cannot do. Skip for fork PRs. | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| if: github.event.action != 'closed' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install and build | |
| if: github.event.action != 'closed' | |
| # Built with a base path matching where the PR preview will actually | |
| # be served from (GitHub project pages are served under | |
| # /<repo-name>/, and pr-preview-action serves this build under | |
| # /pr-preview/pr-<number>/ on top of that) - without this, the | |
| # preview page loads but its JS/CSS assets 404, since Vite's | |
| # default base is "/". | |
| run: | | |
| npm ci | |
| npm run build -- --base=/${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.number }}/ | |
| - name: Deploy preview | |
| uses: rossjrw/pr-preview-action@v1 | |
| with: | |
| source-dir: ./dist/ |