Skip to content

Commit

Permalink
Alter version number automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusa87 committed Oct 6, 2023
1 parent 9c66a49 commit 1d8df2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
- name: Lint TypeScript
run: make lint

- name: Alter version number
run: |
VERSION=${GITHUB_REF#refs\/tags\/}
VERSION=$(echo $VERSION | sed 's#/#-#g')
if [[ ! -z "${VERSION}" ]]; then
echo "Alter version number to ${VERSION}"
sed -i "s/v0.1.1/${VERSION}/" metadata.json
fi
- name: Compile TypeScript and build the artifact
run: make build

Expand Down

0 comments on commit 1d8df2f

Please sign in to comment.