mirror of https://github.com/msgbyte/tailchat
chore: add ci
parent
7ffb17256a
commit
8ec759c940
@ -0,0 +1,43 @@
|
|||||||
|
name: "deploy nightly"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [14.x, 16.x]
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Get yarn cache directory path
|
||||||
|
id: yarn-cache-dir-path
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
echo "::set-output name=version::$(yarn -v)"
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
**/node_modules
|
||||||
|
**/.eslintcache
|
||||||
|
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
|
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-yarn-
|
||||||
|
- name: Install packages
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
- name: Check Type
|
||||||
|
run: cd web && yarn check:type
|
||||||
|
- name: Check Build
|
||||||
|
run: cd web && yarn build
|
Loading…
Reference in New Issue