Skip to content

Commit

Permalink
ci(deps): bump tomerfi/version-bumper-action from 1.2.2 to 2.0.0 (#383)
Browse files Browse the repository at this point in the history
* ci(deps): bump tomerfi/version-bumper-action from 1.2.2 to 2.0.0

Bumps [tomerfi/version-bumper-action](https://github.com/tomerfi/version-bumper-action) from 1.2.2 to 2.0.0.
- [Release notes](https://github.com/tomerfi/version-bumper-action/releases)
- [Commits](TomerFi/version-bumper-action@1.2.2...2.0.0)

---
updated-dependencies:
- dependency-name: tomerfi/version-bumper-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: update version bumper output key

Signed-off-by: Tomer Figenblat <tomer@tomfi.info>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Tomer Figenblat <tomer@tomfi.info>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tomer Figenblat <tomer@tomfi.info>
  • Loading branch information
dependabot[bot] and TomerFi committed Feb 10, 2024
1 parent 00ad415 commit d7e9f1f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

- name: Determine next SemVer
id: bumper
uses: tomerfi/version-bumper-action@1.2.2
uses: tomerfi/version-bumper-action@2.0.0

- name: Update package with new version
run: |
npm version ${{ steps.bumper.outputs.new_version }} --no-git-tag-version
npm version ${{ steps.bumper.outputs.next }} --no-git-tag-version
- name: Install project modules
run: npm ci --production
Expand Down Expand Up @@ -91,20 +91,20 @@ jobs:
run: |
git add package.json
git add package-lock.json
git commit -m "docs: updated package with ${{ steps.bumper.outputs.new_version }} [skip ci]"
git commit -m "docs: updated package with ${{ steps.bumper.outputs.next }} [skip ci]"
git push
- name: Create and push new tag
run: |
git tag ${{ steps.bumper.outputs.new_version }} -m "Function v${{ steps.publish_lambda.outputs.function_version }}"
git push origin ${{ steps.bumper.outputs.new_version }}
git tag ${{ steps.bumper.outputs.next }} -m "Function v${{ steps.publish_lambda.outputs.function_version }}"
git push origin ${{ steps.bumper.outputs.next }}
- name: Create a release name
id: release_name
uses: actions/github-script@v7
with:
script: |
var retval = '${{ steps.bumper.outputs.new_version }}'
var retval = '${{ steps.bumper.outputs.next }}'
if ('${{ github.event.inputs.title }}') {
retval = retval.concat(' - ${{ github.event.inputs.title }}')
}
Expand All @@ -118,18 +118,18 @@ jobs:
script: |
const repo_name = context.payload.repository.full_name
const response = await github.request('POST /repos/' + repo_name + '/releases', {
tag_name: '${{ steps.bumper.outputs.new_version }}',
tag_name: '${{ steps.bumper.outputs.next }}',
name: '${{ steps.release_name.outputs.value }}',
generate_release_notes: true
})
core.setOutput('html_url', response.data.html_url)
- name: Update documentation with new version
run: |
sed -i 's/ version: .*/ version: "${{ steps.bumper.outputs.new_version }}"/g' mkdocs.yml
sed -i 's/ version: .*/ version: "${{ steps.bumper.outputs.next }}"/g' mkdocs.yml
- name: Commit and push docs modifications
run: |
git add mkdocs.yml
git commit -m "docs: updated docs with ${{ steps.bumper.outputs.new_version }} [skip ci]"
git commit -m "docs: updated docs with ${{ steps.bumper.outputs.next }} [skip ci]"
git push

0 comments on commit d7e9f1f

Please sign in to comment.