From 0750223fc78721ed5e744b152b0f2d52c31efa2e Mon Sep 17 00:00:00 2001 From: plouc Date: Fri, 17 Dec 2021 09:43:44 +0900 Subject: [PATCH] fix(ci): fix triggers for the CI workflow --- .github/workflows/ci.yml | 14 ++++++++++++-- yarn.lock | 5 ----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa7c25b0d0..e898ba7d3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: ['master'] + pull_request: + types: [opened, synchronize] jobs: build: @@ -9,14 +13,18 @@ jobs: matrix: node-version: ['16'] steps: - - uses: actions/checkout@v2 + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Node ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Restore Yarn cache uses: actions/cache@v2 with: @@ -24,6 +32,7 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- + - name: Restore Lerna cache uses: actions/cache@v2 with: @@ -31,6 +40,7 @@ jobs: node_modules */*/node_modules key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + - run: yarn install --frozen-lockfile - run: make bootstrap - run: make packages-build diff --git a/yarn.lock b/yarn.lock index 0cfdafa4d3..ce97f6096e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16045,11 +16045,6 @@ multimatch@^3.0.0: arrify "^1.0.1" minimatch "^3.0.4" -mustache@^2.3.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/mustache/-/mustache-2.3.2.tgz#a6d4d9c3f91d13359ab889a812954f9230a3d0c5" - integrity sha512-KpMNwdQsYz3O/SBS1qJ/o3sqUJ5wSb8gb0pul8CO0S56b9Y2ALm8zCfsjPXsqGFfoNBkDwZuZIAjhsZI03gYVQ== - mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"