Skip to content

Commit 287745b

Browse files
authored
ci(dependabot): add lockfile fixer workflow (#59)
1 parent a2613af commit 287745b

2 files changed

Lines changed: 47 additions & 3 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Dependabot Lockfile Fixer
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
concurrency:
16+
group: dependabot-lockfile-fixer-${{ github.event.pull_request.number }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
fix-lockfiles:
21+
if: >
22+
github.actor == 'dependabot[bot]' &&
23+
github.event.pull_request.head.repo.full_name == github.repository
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout PR branch
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.event.pull_request.head.ref }}
31+
repository: ${{ github.event.pull_request.head.repo.full_name }}
32+
fetch-depth: 0
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 24
39+
40+
- name: Fix lockfiles
41+
uses: oleg-koval/dependabot-lockfile-fixer@v1
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
package_manager: npm
45+
working_directory: .

readme.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ Use repo-local plugin composition instead when your team wants different plugins
116116
## Repository Maintenance Notes
117117

118118
- Consumer-facing examples now use `main`.
119-
- Repository automation currently supports both `master` and `main` so maintenance is not blocked before the branch rename.
120-
- Repository automation also supports `beta` for prerelease validation and publishing.
121-
- Renaming this repository's default branch to `main` is still recommended to align hosted defaults, badges, and examples.
119+
- Repository automation publishes stable releases from `main` and prereleases from `beta`.
120+
- Dependabot PRs can auto-refresh `package-lock.json` through the dedicated lockfile-fixer workflow.
122121
- The old README wording that inverted `fix` and `feat` was documentation drift. The actual release behavior has been corrected and is now covered by tests.
123122

124123
## Contributing

0 commit comments

Comments
 (0)