Dependency confirm & update #4537
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |