diff --git a/.github/workflows/tests-and-release.yml b/.github/workflows/tests-and-release.yml index f98ca83..252ae2b 100644 --- a/.github/workflows/tests-and-release.yml +++ b/.github/workflows/tests-and-release.yml @@ -6,7 +6,8 @@ on: branches: master jobs: - publish: + prepare: + name: Prepare runs-on: ubuntu-latest steps: - name: Checkout code @@ -23,12 +24,22 @@ jobs: - name: Build run: yarn build + checks: + name: Checks + needs: prepare + runs-on: ubuntu-latest + steps: - name: Lint run: yarn lint - name: Rule tests run: yarn test + release: + name: Release + needs: checks + runs-on: ubuntu-latest + steps: - name: Publish uses: JS-DevTools/npm-publish@v3 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25a1733..c68ab3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,8 +6,8 @@ on: branches: master jobs: - build: - name: Tests + prepare: + name: Prepare runs-on: ubuntu-latest steps: - name: Checkout code @@ -24,6 +24,11 @@ jobs: - name: Build run: yarn build + checks: + name: Checks + needs: prepare + runs-on: ubuntu-latest + steps: - name: Lint run: yarn lint