-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (54 loc) · 1.81 KB
/
dependency_update.yml
File metadata and controls
55 lines (54 loc) · 1.81 KB
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
49
50
51
52
53
54
55
name: Dependency confirm & update
on:
schedule:
# every 6th hour at 0 min
- cron: '0 */6 * * *'
jobs:
Dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Node.js modules cache
uses: actions/cache@v2
id: modules-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-modules
- name: Install Node.js packages
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
run: yarn install
- name: Confirm dependencies
run: |
yarn build:deps
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
branch: deps-update
base: ci
labels: "build"
commit-message: "chore(build): npm updates"
title: "chore(build): npm updates"
body: |
## What's included
- chore(build): npm updates
### Notes
- PF and Platform related NPMs are excluded.
- Only packages that pass both unit, and integration tests are included.
## How to test
### Run it locally!
1. update the NPM packages with `$ yarn`
1. confirm that NPM packages need updating with `$ yarn outdated`, if so...
1. run `$ yarn build:deps`
1. and wait for the process to complete
## Updates issue/story
ongoing