Use combineConfig for configuration, expose listeners (#29) #27
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: Demo | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: ποΈ Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: β Setup pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: β Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: π₯ Install dependencies | |
run: pnpm install --ignore-scripts --frozen-lockfile | |
- name: π οΈ Build project | |
run: pnpm demo | |
- name: π Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: π€ Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './demo/dist' | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |