gh-action-bump-version/.github/workflows/push.yml

33 lines
773 B
YAML
Raw Normal View History

2021-07-01 19:53:38 +00:00
name: 'Bump Version'
2019-10-26 18:01:14 +00:00
on:
push:
branches:
2021-08-08 01:38:44 +00:00
- 'master'
2019-10-26 18:01:14 +00:00
jobs:
2021-08-07 21:19:59 +00:00
bump-version:
name: 'Bump Version on master'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
with:
ref: ${{ github.ref }}
- name: 'cat package.json'
run: cat ./package.json
2021-07-01 19:53:38 +00:00
- name: 'Automated Version Bump'
2020-11-16 16:24:15 +00:00
id: version-bump
2021-08-08 01:38:44 +00:00
uses: 'phips28/gh-action-bump-version@master'
2019-11-20 14:55:55 +00:00
with:
2021-05-20 21:13:47 +00:00
tag-prefix: 'v'
2019-10-26 18:01:14 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021-07-01 19:53:38 +00:00
- name: 'cat package.json'
run: cat ./package.json
2021-07-01 19:53:38 +00:00
- name: 'Output Step'
2020-11-16 16:24:15 +00:00
env:
NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
run: echo "new tag $NEW_TAG"