-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert pass-acceptance-test step to use yarn
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters