-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16506 from mshima/skip_ci-lock_maintenance
Add lock-maintenance workflow. [skip ci]
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Package lock maintenance | ||
on: | ||
schedule: | ||
- cron: 0 0 * * 6 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Bump transitional dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v2.4.0 | ||
with: | ||
node-version: '14' | ||
- run: npm install -g npm@latest | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/cache@v2.1.6 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}- | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Create commit | ||
run: | | ||
rm package-lock.json | ||
npm install | ||
git add . | ||
./test-integration/scripts/04-git-config.sh | ||
git commit -a -m "Bump transitional dependencies" || true | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3.8.2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'Bump transitional dependencies' | ||
title: 'Bump transitional dependencies' | ||
body: Weekly transitional dependencies bump. | ||
labels: 'theme: dependencies' |