-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
15 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
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Running 'changeset version' to know the new release version" | ||
|
||
yarn changeset version &>/dev/null | ||
|
||
echo "Running 'git status' to see the worktree changes" | ||
|
||
git status | ||
|
||
echo "Determining the version from the package.json of a package" | ||
release_version=$(node -e "console.log(require('./packages/metrics/package.json').version)") | ||
|
||
echo "Version for release is $release_version" | ||
|
||
echo "Running 'git reset' and exporting to GITHUB_OUTPUT" | ||
|
||
git reset --hard &>/dev/null | ||
|
||
echo "RELEASE_VERSION=$release_version" >> $GITHUB_OUTPUT | ||
|
||
echo "GITHUB_OUTPUT is:" | ||
echo $GITHUB_OUTPUT |
This file was deleted.
Oops, something went wrong.