From 6a71fccea4f2c43c71afaa5acb4154f45670280e Mon Sep 17 00:00:00 2001 From: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Date: Thu, 20 May 2021 10:27:13 +0200 Subject: [PATCH] ci: update global workflows --- .github/workflows/if-nodejs-release.yml | 4 ++++ .github/workflows/if-nodejs-version-bump.yml | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 7da5645aad9..793eccb0c90 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -7,6 +7,10 @@ on: push: branches: - master + # below lines are not enough to have release supported for these branches + # make sure configuration of `semantic-release` package mentiones these branches + - next + - '**-release' jobs: diff --git a/.github/workflows/if-nodejs-version-bump.yml b/.github/workflows/if-nodejs-version-bump.yml index 34d57df82b1..c1f5c8603bb 100644 --- a/.github/workflows/if-nodejs-version-bump.yml +++ b/.github/workflows/if-nodejs-version-bump.yml @@ -13,10 +13,13 @@ jobs: name: Generate assets and bump runs-on: ubuntu-latest steps: - - name: Checkout repo + - name: Checkout repository uses: actions/checkout@v2 with: - ref: master + # target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases + # in case release is created from release branch then we need to checkout from given branch + # if @semantic-release/github is used to publish, the minimum version is 7.2.0 for proper working + ref: ${{ github.event.release.target_commitish }} - name: Check if Node.js project and has package.json id: packagejson run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"