Update Vite's Node API to ESM from CJS build (#155) #88
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: GitHub Page Publish | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node 🔧 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: Install and Build 🔧 | |
run: | | |
npm install | |
npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist |