Skip to content

Create FUNDING.yml #143

Create FUNDING.yml

Create FUNDING.yml #143

Workflow file for this run

name: Node CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_and_lint:
name: Build & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Node.js modules
id: yarn-cache
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile --silent
env:
CI: true
- name: Lint
run: yarn lint
env:
CI: true
- name: Test build
run: yarn build
env:
CI: true
- name: Surge deploy
run: yarn upload
env:
CI: true
SURGE_LOGIN: ${{ secrets.surge_login }}
SURGE_TOKEN: ${{ secrets.surge_token }}