From dc2e783e86a811d454b4ecdc979de5f0fdf4075d Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Sun, 28 Apr 2024 17:40:17 +1200 Subject: [PATCH] ci(fix): checkout repo and use single step --- .github/workflows/ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f7b07de9..460ce0ebf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ jobs: linux: runs-on: ubuntu-latest steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -24,16 +27,8 @@ jobs: - name: Run tests run: npx jest --coverage --runInBand --testTimeout=900000 --forceExit - release: - runs-on: ubuntu-latest - needs: linux - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} - - name: Release package + if: github.ref == 'refs/heads/master' run: | set -e npm ci