From 4c50727a325188fdb5e31cab132d9536f4c1f8b2 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Mon, 14 Mar 2022 08:16:45 -0400 Subject: [PATCH] ci: only lint/test PRs (#2437) --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ba48a5c..5aa1572d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: test: name: Lint & Test Build + if: github.event_name == 'pull_request' runs-on: ubuntu-20.04 container: node:16.14-alpine steps: @@ -27,7 +28,6 @@ jobs: build_and_push: name: Build & Publish Docker Images - needs: test if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-20.04 steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b801f39..53109486 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,25 +6,8 @@ on: - master jobs: - test: - name: Lint & Test Build - runs-on: ubuntu-20.04 - container: node:16.14-alpine - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install dependencies - env: - HUSKY_SKIP_INSTALL: 1 - run: yarn - - name: Lint - run: yarn lint - - name: Build - run: yarn build - semantic-release: name: Tag and release latest version - needs: test runs-on: ubuntu-20.04 steps: - name: Checkout