try arrow function as possible #34
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 To gh-pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup node env 📦 | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
registry-url: https://registry.npmjs.org | |
check-latest: true | |
- name: Upgrade npm ✨ | |
run: npm i -g npm@latest | |
- name: Install dependencies 🚀 | |
run: npm i --prefer-offline --no-audit --no-optional | |
- name: Build 🔧 | |
run: npm run build | |
- name: Deploy to GitHub Pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist |