From 85c8fb3998d53d1b32b745ddd4e4795d72e0cd11 Mon Sep 17 00:00:00 2001 From: Jasper Furniss Date: Wed, 28 Aug 2024 13:34:00 -0400 Subject: [PATCH] Testing Fix (#3638) **What does this PR do?** A clear and concise description with your runway ticket url. **Screenshots:** Screenshots to visualize your addition/change **How to test?** Steps to confirm the desired behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See addition/change #### Checklist: - [ ] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [ ] **DEPLOY** I have added the `milano` label to show I'm ready for a review. - [ ] **TESTS** I have added test coverage to my code. --- .github/workflows/github-actions-release-candidate.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-release-candidate.yml b/.github/workflows/github-actions-release-candidate.yml index 4bca067e35..f0284ef184 100644 --- a/.github/workflows/github-actions-release-candidate.yml +++ b/.github/workflows/github-actions-release-candidate.yml @@ -43,13 +43,12 @@ jobs: current_npm_version=$(node -pe "require('./package.json').version") current_ruby_version=$(ruby -r ./lib/playbook/version.rb -e "puts Playbook::VERSION") - # Check if current version already has an RC if [[ $current_npm_version == *"-rc."* ]]; then - new_npm_version=$(yarn version --prerelease --preid rc) + new_npm_version=$(yarn version --prerelease --preid rc --no-git-tag-version | grep "New version:" | awk '{print $4}') else - new_npm_version=$(yarn version --preminor --preid rc) + new_npm_version=$(yarn version --preminor --preid rc --no-git-tag-version | grep "New version:" | awk '{print $4}') fi - + new_npm_version=${new_npm_version#v} new_ruby_version=$(echo $new_npm_version | sed 's/-rc\./.pre.rc./')