Skip to content

Commit

Permalink
chore: adds semver install step
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeherp committed Apr 19, 2023
1 parent 8d77db2 commit c0f4986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ jobs:
id: set_previous_version
run: echo "PREVIOUS_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
shell: bash
- name: Install SemVer
run: npm i -g semver
- name: Bump version
id: bump_version
run: |
npx semver --increment ${{ env.BUMP_TYPE }} ${{ env.PACKAGE_VERSION }} --preid=beta.${{ github.run_number }} -i -f -p 'beta' > version.txt
semver --increment ${{ env.BUMP_TYPE }} ${{ env.PACKAGE_VERSION }} --preid=beta.${{ github.run_number }} -i -f -p 'beta' > version.txt
echo "NEW_VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Update package.json
Expand Down

0 comments on commit c0f4986

Please sign in to comment.