fix: installed babel/core as dev dependency #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: Build & commit to gh-pages | |
on: | |
push: | |
branches: | |
- master # Change this to the branch you want to trigger the deployment from | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Build and deploy | |
run: | | |
npm install | |
npm run build | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git checkout --orphan gh-pages | |
git --work-tree dist add --all | |
git --work-tree dist commit -m "Deploy" | |
git push origin HEAD:gh-pages --force |