Skip to content

Commit

Permalink
ci: bump version
Browse files Browse the repository at this point in the history
- automatically update npm package version in package.json with pull request on development when necessary.
  • Loading branch information
gabririgo committed Jun 15, 2022
1 parent 2a35d66 commit 1756e00
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Bump npm version
on:
pull_request:
branches:
- 'development'

jobs:
bump_version:
name: Bump NPM Version on development
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

- name: Automated Version Bump
id: version-bump
uses: phips28/gh-actions-bump-version@master
# we skip tag, as a new tag is created when the release workflow is executed
with:
skip-tag: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: cat package.json
run: cat ./package.json

0 comments on commit 1756e00

Please sign in to comment.