-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.19 KB
/
update-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: update-package
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
update-package:
runs-on: ubuntu-latest
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