-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.41 KB
/
bump.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
40
41
42
43
44
45
46
47
48
name: Weekly Bump Dependencies
on:
schedule:
- cron: '0 14 * * 1'
workflow_dispatch:
env:
node_version: "20.x"
jobs:
Bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: npm install
run: npm install
- name: Check outdated dependencies
id: outdated
run: npm outdated || echo ::set-output name=outdated::1
- name: Bump dependencies
if: steps.outdated.outputs.outdated == 1
run: npm update
- name: Bump patch version
if: steps.outdated.outputs.outdated == 1
run: npm version patch -git-tag-version=false
- name: Create (or update) pull request
if: steps.outdated.outputs.outdated == 1
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_ACTIONS_TOKEN }} # Use non-default token so that this PR will trigger CI
title: 'chore(deps): bump dependencies'
commit-message: 'chore(deps): bump dependencies'
body: Created using the [Weekly Bump Dependenciesv](https://github.com/${{ github.repository }}/actions?query=workflow%3A%22Weekly+Bump+Dependencies%22) workflow
branch: bump-dependencies
labels: |
dependencies
javascript
reviewers: yoshutch