chore: ESM should be used in CTS files #19
This file contains 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: Build and Deploy | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/playground/react-sample/src/**" | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install and Build 🔧 | |
run: | | |
pnpm i | |
pnpm --filter vite-plugin-fake-server run build | |
pnpm --filter react-sample run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: packages/playground/react-sample/dist |