Update Node.js version and use pnpm for dependency installation #3
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: Deploy Example to GitHub Pages | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.15.6 | |
- uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build Example | |
run: cd example && npm install && npm run build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: example/dist |