-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.16 KB
/
Copy pathdeploy-playground-preview.yml
File metadata and controls
48 lines (38 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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