Skip to content

Commit

Permalink
Add renovate (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasKn authored Jun 11, 2024
1 parent ab53988 commit 3702ee5
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:recommended",
"schedule:weekly",
"group:allNonMajor",
":disablePeerDependencies",
],
timezone: "America/Los_Angeles",
schedule: ["before 4am on monday"],
labels: ["dependencies"],
rangeStrategy: "bump",
includePaths: ["packages/**", "apps/**", "examples/**"],
ignorePaths: ["packages/typescript-config", "packages/eslint-config"],
ignoreDeps: [
// manually bumping deps
"eslint",
"@sanity/pkg-utils",
"@sanity/plugin-kit",

// manually bumping workflow actions
"actions/labeler",

// ignore "engines" update
"node",
"npm",
"pnpm",
],
packageRules: [
{
matchPaths: ["apps/**", "examples/**"],
groupName: "apps and examples dependencies",
enabled: true,
},
{
matchPaths: ["packages/**"],
groupName: "packages dependencies",
enabled: true,
},
],
}
26 changes: 26 additions & 0 deletions .github/workflows/changesets-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Generate changeset for Renovate

on:
pull_request_target:
paths:
- ".github/workflows/changesets-renovate.yml"
- "packages/**/pnpm-lock.yaml"
- "packages/**/package.json"

jobs:
generate-changeset:
runs-on: ubuntu-latest
if: github.actor == 'renovate[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
ref: ${{ github.head_ref }}
- name: Git Identity
run: |
git config --global user.name 'tinloof-bot'
git config --global user.email 'bot@tinloof.com'
- uses: pnpm/action-setup@v3
- name: Run changesets-renovate
run: pnpm dlx @scaleway/changesets-renovate@latest

0 comments on commit 3702ee5

Please sign in to comment.