From 47dd13bc5d78cbffe8f0c7d161ac62181a03e17e Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 13 Jan 2021 21:06:33 +0900 Subject: [PATCH] chore: create build action --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4bd9bdf --- /dev/null +++ b/.github/workflows/build.yml @@ -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