Skip to content

Revamp

Revamp #21

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Yarn
# You may pin to the exact commit or the version.
# uses: mskelton/setup-yarn@b0673acb4e37f20265fbddbf7567110ebb313605
uses: mskelton/setup-yarn@v3
- name: Build
run: yarn build
- run: cp CNAME ./dist/CNAME
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true