Merge pull request #13 from OasisDEX/marcinciarka/workflow-work-1 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump package version and tag it | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump-and-tag: | |
name: Bump and Tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Bump Version | |
id: bump_version | |
uses: phips28/gh-action-bump-version@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
version-type: "minor" | |
tag-prefix: "v" | |
- name: "Declare a new version" | |
env: | |
NEW_TAG: ${{ steps.version-bump.outputs.newTag }} | |
run: echo "new tag $NEW_TAG" |