Skip to content

Upgrade: Bump @types/react from 18.2.74 to 18.2.79 in /document-conversion #2

Upgrade: Bump @types/react from 18.2.74 to 18.2.79 in /document-conversion

Upgrade: Bump @types/react from 18.2.74 to 18.2.79 in /document-conversion #2

Workflow file for this run

name: Bump Version Workflow
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches:
- main
paths:
- 'document-conversion/package.json'
- 'document-conversion/package-lock.json'
jobs:
bump-version:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'Upgrade') && contains(github.event.pull_request.title, 'Upgrade') && contains(github.event.pull_request.title, '/document-conversion') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install npm dependencies
run: npm install
working-directory: ./document-conversion
- name: Bump Version
id: bump
run: |
cd document-conversion
npm version patch --no-git-tag-version
echo "New version $(cat package.json | jq -r '.version')"
env:
CI: true
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add document-conversion/package.json document-conversion/package-lock.json
git commit -m "chore: bump version [skip ci]"
git push