From 1ec444915623beae6df77bfe7aea57a04ed22bc9 Mon Sep 17 00:00:00 2001 From: Opliko Date: Mon, 13 Jun 2022 22:52:53 +0000 Subject: [PATCH] ci: add job dependency --- .github/workflows/deno.yml | 6 ++++-- .github/workflows/test.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 535caa1..df532d3 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -26,6 +26,7 @@ jobs: bench: name: benchmark runs-on: ubuntu-latest + needs: test if: "!contains(github.event.head_commit.message, '[skip ci]')" env: GH_ACTIONS: true @@ -41,7 +42,8 @@ jobs: run: deno bench --unstable . release: name: Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest + needs: test if: "!contains(github.event.head_commit.message, '[skip ci]')" steps: - name: Checkout @@ -49,7 +51,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 12.17.0 + node-version: 14 - name: Setup package.json run: echo '{"name":"@denorg/scrypt","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/denorg/scrypt.git"},"author":"Denorg","license":"MIT","bugs":{"url":"https://github.com/denorg/scrypt/issues"},"homepage":"https://denorg.github.io/scrypt/","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dee8c5c..7efed54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: bench: name: benchmark runs-on: ubuntu + needs: test if: "!contains(github.event.head_commit.message, '[skip ci]')" env: GH_ACTIONS: true