Skip to content

Commit

Permalink
Revert pass-acceptance-test step to use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Jul 31, 2024
1 parent dfc876d commit ce4110d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/actions/yarn-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update yarn version for release
description: |
Updates yarn version which automatically does a commit and this action tags
inputs:
repository_dir:
description: 'Directory of repository to update'
required: true
skip_tag:
description: 'Skip git tag'
required: false
default: "false"

runs:
using: composite
steps:
- name: Update yarn version and tag
shell: bash
working-directory: ${{ inputs.repository_dir }}
env:
SKIP_TAG: ${{ inputs.skip_tag }}
run: |
yarn install --frozen-lockfile
yarn config set version-git-tag false
yarn version --new-version $RELEASE
git commit --allow-empty -am "Update version to $RELEASE"
if [ "$SKIP_TAG" == "false" ]; then
echo "Tagging yarn version $RELEASE"
git tag $RELEASE
fi
4 changes: 2 additions & 2 deletions .github/workflows/pass-complete-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ jobs:

- name: Set Release/commit/tag ~ pass-acceptance-testing
if: ${{ ! env.PASS_ACCPT_TEST_TAG_EXISTS }}
uses: ./main/.github/actions/node-version
uses: ./main/.github/actions/yarn-version
with:
repository_dir: combined/pass-acceptance-testing
env:
RELEASE: ${{ env.RELEASE }}

- name: Set Snapshot/commit ~ pass-acceptance-testing
if: ${{ ! env.PASS_ACCPT_TEST_TAG_EXISTS }}
uses: ./main/.github/actions/node-version
uses: ./main/.github/actions/yarn-version
with:
repository_dir: combined/pass-acceptance-testing
skip_tag: "true"
Expand Down

0 comments on commit ce4110d

Please sign in to comment.