feat: emit QUESTION_TYPES with as const so per-key literals survive #10
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 docs to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| # Install from the repo root, not from docs/: the root is the workspace root, | |
| # so npm installs the whole tree there and runs the root `prepare` (tsc). | |
| # Installing inside docs/ leaves the root package's own dependencies absent, | |
| # and that prepare then fails on missing `xlsx` / `marked`. | |
| - name: Install | |
| run: npm install --no-audit --no-fund | |
| - name: Build | |
| working-directory: docs | |
| env: | |
| VITE_BASE: /formtransform/ | |
| run: npm run build | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/deploy-pages@v4 | |
| id: deployment |