Release/v0.8.2 #28
Workflow file for this run
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-npm-version | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
bump: | |
name: Bump version | |
if: "!contains( github.ref, 'release' )" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get version | |
id: get_version | |
run: echo "##[set-output name=version;]$(echo $GITHUB_HEAD_REF | sed -e "s/^release\///")" | |
- name: Update npm version | |
run: npm version ${{ steps.get_version.outputs.version }} --git-tag-version=false --allow-same-version | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: github-actions | |
author_email: github-actions@github.com | |
message: Bump version to ${{ steps.get_version.outputs.version }} | |
add: package.json package-lock.json | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |