Skip to content

Commit

Permalink
Improve version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Jun 21, 2024
1 parent cbf0bc3 commit cd7660d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Update package version
run: |
version=${{ inputs.version_tag }}
sed -i "s/\"version\": \".*\"/\"version\": \"$version\"/" package.json
npm version $version --no-git-tag-version
- name: Install packages
run: |
Expand Down Expand Up @@ -56,7 +56,6 @@ jobs:
- name: Push package version change
run: |
npm i
git add package.json
git add package-lock.json
git commit -m "Update package.json version to: ${{ inputs.version_tag }}" && \
Expand All @@ -65,8 +64,12 @@ jobs:
- name: Publish Docs
run: |
rm -rf ./* ./.*
# Delete everything except .git and .
shopt -s dotglob
rm -rf !( .git | .)
shopt -u dotglob
# Move the docs back and commit only them
mv ../docs_wip docs
git add .
git commit -m "Update Docs for version: ${{ inputs.version_tag }}"
Expand Down

0 comments on commit cd7660d

Please sign in to comment.