This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Bump_Dependencies #126
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
name: Bump_Dependencies | |
on: | |
schedule: | |
- cron: "5 8 * * Sun" # 8:05 every Sunday | |
jobs: | |
Bump_Dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "12" | |
- name: Setup PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: latest | |
- name: setup npm-check-updates | |
run: pnpm install -g npm-check-updates | |
- run: | | |
ncu -u --dep prod | |
pnpm install | |
- uses: tibdex/github-app-token@v1 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
commit-message: "fix: update dependencies" | |
title: "fix: update dependencies" | |
labels: Dependencies | |
branch: "Bump_Dependencies" | |
Bump_devDependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "12" | |
- name: Setup PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: latest | |
- name: setup npm-check-updates | |
run: pnpm install -g npm-check-updates | |
- run: | | |
ncu -u --dep dev | |
pnpm install | |
- uses: tibdex/github-app-token@v1 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
commit-message: "chore: update devDependencies" | |
title: "chore: update devDependencies" | |
labels: Dependencies | |
branch: "Bump_devDependencies" |