-
-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (30 loc) · 836 Bytes
/
updateDevDependencies.yaml
File metadata and controls
38 lines (30 loc) · 836 Bytes
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
name: Update dev dependencies
permissions: write-all
on:
schedule:
- cron: "0 18 * * *"
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update dev dependencies
run: npx npm-check-updates -u '/devDependencies/'
- name: Install dev dependencies
run: npm install --only=dev
- name: Run tests
run: npm test
- name: Commit changes
run: |
git config --global user.name "Kristjan ESPERANTO"
git config --global user.email '35647502+KristjanESPERANTO@users.noreply.github.com'
git add -A
git diff-index --quiet HEAD || git commit -m "Automated dependency update"
git push