-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- automatically update npm package version in package.json with pull request on development when necessary.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 |