Skip to content

chore(deps): lock file maintenance #4268

chore(deps): lock file maintenance

chore(deps): lock file maintenance #4268

---
name: update-package
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
push:
branches:
- main
jobs:
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
update-package:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/[email protected]
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/[email protected]
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
cache: npm
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: npm install
- uses: dev-hato/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
branch-name-prefix: fix-package
pr-title-prefix: package.jsonやpackage-lock.jsonを直してあげたよ!
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true