Skip to content

Commit 871158b

Browse files
committed
feat: npm update action
1 parent feb6a6e commit 871158b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/npmupdate.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: npm update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 2' # Every Tuesday at midnight
7+
8+
env:
9+
FORCE_COLOR: 3
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
max-parallel: 4
16+
matrix:
17+
node-version: [ 22.x ]
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
28+
- name: Run npm update
29+
run: |
30+
npm update
31+
32+
- name: Create Pull Request
33+
uses: peter-evans/create-pull-request@v7
34+
with:
35+
token: '${{ secrets.GH_PR_PAT }}'
36+
commit-message: "chore: npm update"
37+
committer: 'Michel Palourdio <mpalourdio@gmail.com>'
38+
author: 'Michel Palourdio <mpalourdio@gmail.com>'
39+
branch: 'npm-update'
40+
delete-branch: 'true'
41+
title: 'chore: npm update'
42+
labels: 'npm update'
43+
body: ''

0 commit comments

Comments
 (0)