From 4fd64f3194010c27f067666cc266728de1d4ef38 Mon Sep 17 00:00:00 2001 From: Daniel Weinberger Date: Fri, 21 Jun 2024 14:28:43 +0200 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 892b42f2..d3fcc307 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout uses: actions/checkout@v3 + with: + ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }} + ref: develop # The Yospace private npm registry seems to not support NPM token so we sadly need to use password and email - name: Log in to Yospace private NPM registry @@ -51,17 +54,16 @@ jobs: const { defineReleaseVersion } = require('./.github/scripts/defineVersion.js') return defineReleaseVersion({core}, "${{ steps.read-latest-release-version.outputs.latestReleaseVersion }}", './CHANGELOG.md' ) - - name: Bump package.json and Changelog version and tag commit + - name: Bump package.json and Changelog version run: | - git config --global user.name 'Automated Release' - git config --global user.email 'release-automation@bitmovin.com' - npm version "${{ fromJson(steps.define-release-version.outputs.result) }}" + npm --no-git-tag-version version "${{ fromJson(steps.define-release-version.outputs.result) }}" npx kacl release - - name: Push changes + - name: Add tag and push changes run: | git add . git commit -m "Bump version and update changelog" + git tag -a "${{ fromJson(steps.define-release-version.outputs.result) }}" -m "v${{ fromJson(steps.define-release-version.outputs.result) }}" git push origin develop git push origin --tags