feat(adapter): auto-detect sx-aware wrapped components, with optional override hook #855
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 Playground Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: preview-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| if: github.event.action != 'closed' | |
| - uses: actions/setup-node@v4 | |
| if: github.event.action != 'closed' | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| if: github.event.action != 'closed' | |
| run: pnpm install | |
| - name: Build playground | |
| if: github.event.action != 'closed' | |
| run: pnpm build:playground | |
| env: | |
| VITE_PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PLAYGROUND_BASE_PATH: /styled-components-to-stylex-codemod/pr-preview/pr-${{ github.event.pull_request.number }}/ | |
| - name: Deploy preview | |
| uses: rossjrw/pr-preview-action@v1 | |
| with: | |
| source-dir: ./dist-playground/ | |
| qr-code: false |