Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert pass-acceptance-test release to use yarn #1023

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading