Skip to content

Commit

Permalink
Merge pull request #43 from atom-community/atom-ide-base
Browse files Browse the repository at this point in the history
Update dep bumper
  • Loading branch information
aminya authored Feb 6, 2021
2 parents 58bdb63 + cd2fe25 commit be953ab
Showing 1 changed file with 54 additions and 11 deletions.
65 changes: 54 additions & 11 deletions .github/workflows/bump_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,71 @@ name: Bump_Dependencies

on:
schedule:
- cron: "0 0 * * *"
- cron: "5 8 * * Sun" # 8:05 every Sunday

jobs:
Bump_Dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "12"
- name: Setup PNPM
uses: pnpm/[email protected].0
uses: pnpm/[email protected].2
with:
version: 4.11.1
version: latest

- name: setup npm-check-updates
run: pnpm install -g npm-check-updates

- run: |
ncu -u --dep prod
pnpm install
pnpm run bump
- 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 Dependencies"
title: "fix: Update Dependencies"
labels: Dependencies
branch: "Bump_Dependencies"


Bump_devDependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
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: peter-evans/create-pull-request@v2
- 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: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update dependencies
title: "[AUTO] Update dependencies"
token: ${{ steps.generate-token.outputs.token }}
commit-message: "chore: Update devDependencies"
title: "chore: Update devDependencies"
labels: Dependencies
branch: "Bump"
branch: "Bump_devDependencies"

0 comments on commit be953ab

Please sign in to comment.