Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2
updates:
# GitHub Actions used in workflows (all SHA-pinned; Dependabot rewrites
# the SHA and the trailing version comment together).
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
groups:
actions:
patterns: ['*']
commit-message:
# Action bumps don't change the published action → no release.
prefix: ci
include: scope
labels: [dependencies, ci]

# npm deps. Runtime (@actions/*) bumps can change the committed dist/
# bundle; the rebuild-dist workflow regenerates it on the PR. Dev-tool
# bumps (esbuild, typescript, @types) usually don't.
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
groups:
actions-toolkit:
patterns: ['@actions/*']
dev-dependencies:
dependency-type: development
commit-message:
# `fix(deps):` so a runtime bump cuts a patch release; dev-dep bumps
# get `chore(deps-dev):` (hidden by release-please).
prefix: fix
prefix-development: chore
include: scope
labels: [dependencies]
24 changes: 17 additions & 7 deletions .github/workflows/rebuild-dist.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: rebuild-dist

# When Renovate bumps a bundled dependency, the committed dist/ goes stale
# and the dist-drift gate in `test` fails. Renovate can't run the build
# itself, so this workflow rebuilds dist/ on Renovate's PRs and pushes the
# When a bot bumps a bundled dependency, the committed dist/ goes stale
# and the dist-drift gate in `test` fails. The bot can't run the build
# itself, so this workflow rebuilds dist/ on its PR and pushes the
# regenerated bundle back onto the PR branch.
#
# Works out of the box for Renovate (its PRs can read Actions secrets).
# For Dependabot, GitHub runs the PR with a read-only token and the
# *Dependabot* secret store, not the Actions one — so the app-token step
# only works once RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY are also
# added under Settings → Secrets and variables → Dependabot. Until then,
# a dist-changing Dependabot PR needs a manual `npm ci && npm run build`
# commit (rare: only @actions/* runtime bumps change the bundle).

on:
pull_request:
Expand All @@ -22,9 +30,9 @@ concurrency:
jobs:
rebuild:
name: Rebuild committed bundle
# Only act on Renovate's own PRs to avoid pushing to forks or arbitrary
# contributor branches.
if: ${{ github.actor == 'renovate[bot]' }}
# Only act on trusted bot PRs (in-repo branches), never forks or
# arbitrary contributor branches.
if: ${{ github.actor == 'renovate[bot]' || github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -37,7 +45,9 @@ jobs:
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
with:
app-id: ${{ vars.RELEASE_APP_ID }}
# Renovate/Actions runs read the variable; Dependabot runs have
# no variables store, so fall back to the Dependabot secret.
app-id: ${{ vars.RELEASE_APP_ID || secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- name: Check out PR branch
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
Expand Down
44 changes: 0 additions & 44 deletions renovate.json

This file was deleted.

Loading