Skip to content

Commit

Permalink
Merge pull request #138 from HlexNC/dependabot/npm_and_yarn/document-…
Browse files Browse the repository at this point in the history
…conversion/types/react-18.2.79

Upgrade: Bump @types/react from 18.2.74 to 18.2.79 in /document-conversion
  • Loading branch information
HlexNC committed Apr 22, 2024
2 parents 7c4acc1 + 540b804 commit 08f3619
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@ name: Bump Version Workflow

on:
pull_request:
types: [opened, synchronize]
branches:
- main
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.title, 'Upgrade') && contains(github.event.pull_request.title, '/document-conversion') }}
runs-on: ubuntu-latest
if: >
github.actor == 'dependabot[bot]' &&
contains(github.event.pull_request.title, 'Upgrade: Bump') &&
contains(github.event.pull_request.title, '/document-conversion')
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '14'

Expand All @@ -27,7 +30,6 @@ jobs:
working-directory: ./document-conversion

- name: Bump Version
id: bump
run: |
cd document-conversion
npm version patch --no-git-tag-version
Expand All @@ -42,3 +44,7 @@ jobs:
git add document-conversion/package.json document-conversion/package-lock.json
git commit -m "chore: bump version [skip ci]"
git push
env:
GIT_COMMITTER_NAME: GitHub Actions
GIT_COMMITTER_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 7 additions & 7 deletions document-conversion/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion document-conversion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@types/markdown-it": "^14.0.1",
"@types/node": "^20.12.7",
"@types/react": "^18.2.74",
"@types/react": "^18.2.79",
"@types/react-syntax-highlighter": "^15.5.11",
"eslint": "^9.1.0",
"markdown-it": "^14.1.0",
Expand Down

0 comments on commit 08f3619

Please sign in to comment.