chore: create build action

This commit is contained in:
Nebel 2021-01-13 21:06:33 +09:00
parent a216eddfb9
commit 47dd13bc5d

18
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: build
on:
push:
branches-ignore: [master]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: yarn_cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn_cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- run: yarn
- run: yarn build