Skip to content

Merge pull request #101 from hsnaydd/dependabot/npm_and_yarn/website/… #228

Merge pull request #101 from hsnaydd/dependabot/npm_and_yarn/website/…

Merge pull request #101 from hsnaydd/dependabot/npm_and_yarn/website/… #228

Workflow file for this run

name: CI
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
jobs:
run:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [12]
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm --version
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node modules
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Install website dependencies
run: cd website && yarn install --frozen-lockfile
- name: Run lint website
run: cd website && yarn lint
- name: Build website
run: cd website && yarn build
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node == 12
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./website/dist
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node == 12