Skip to content

Commit

Permalink
Changing the way version being written to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnyblast committed Nov 13, 2024
1 parent e08dfe2 commit ee58f73
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,9 @@ jobs:
- name: Install Bun
uses: oven-sh/setup-bun@v2

- name: Get version number
id: split_version
run: |
export plain_tag=$(TAG_NAME=${{ github.ref_name }}; echo "$TAG_NAME" | cut -d "v" -f 2)
echo "version=${plain_tag}" >> $GITHUB_OUTPUT
- name: Set version number
run: |
sed -i 's/\"version\":.*/\"version\":\"${{ steps.split_version.outputs.version }}\"\,/' ./package.json
sed -i 's/\"version\":.*/\"version\":\"${{ github.ref_name }}\"\,/' ./package.json
- name: Install Dependencies
run: bun install
Expand Down

0 comments on commit ee58f73

Please sign in to comment.