Skip to content

Commit

Permalink
Update version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaka1 committed Jul 7, 2024
1 parent 3325f31 commit 55cf3c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ jobs:
path: TestResults
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
# - name: Set run permissions
# id: set-perms
# run: |
# chmod +x ./build/version.sh
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
Expand Down
4 changes: 1 addition & 3 deletions build/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ PACKAGE_JSON_PATH="$1"
CSPROJ_PATH="$2"
PACKAGE_NAME="$3"

set -xe
pwd
ls -la
set -e
yarn run changeset:version
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
sed -i "s#<VersionPrefix>.*</VersionPrefix>#<VersionPrefix>$VERSION</VersionPrefix>#" "$CSPROJ_PATH"
Expand Down

0 comments on commit 55cf3c5

Please sign in to comment.