feat(xr)!: XR as a plugin — solid-three/xr (xrEvents + controller capture + createXR/useXR) #134
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: Publish to pkg.pr.new | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install latest corepack | |
| run: npm install corepack@latest -g | |
| - run: corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install Playwright Chromium | |
| run: pnpm exec playwright install --with-deps chromium | |
| # Build the library first so `site/` (which imports `solid-three` | |
| # via `link:..`) can resolve types in the Typecheck step. | |
| - name: Build | |
| run: pnpm build | |
| - name: Typecheck | |
| run: pnpm lint:types | |
| - name: Test | |
| run: pnpm test --run | |
| - name: Publish preview | |
| run: pnpx pkg-pr-new publish --compact --template ./demo |