Skip to content

Instantly share code, notes, and snippets.

@vio
Created August 12, 2021 06:59
Show Gist options
  • Save vio/92bea5337b81883aaa9632608ba15c89 to your computer and use it in GitHub Desktop.
Save vio/92bea5337b81883aaa9632608ba15c89 to your computer and use it in GitHub Desktop.
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build
env:
RELATIVE_CI_KEY: ${{ secrets.RELATIVE_CI_KEY }}
DEBUG: ${{ secrets.DEBUG }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment