From 00455863a41c4f6e715fb105be6a38c3355dd716 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 20 May 2021 08:15:45 +0000 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 7da5645aa..793eccb0c 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 34d57df82..c1f5c8603 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"