Skip to content

Commit

Permalink
chore(lint-pr-title): use text lockfile, specify bun version in separ…
Browse files Browse the repository at this point in the history
…ate file (#702)

Renovate isn't currently updating the Bun version we're using for this
workflow. That's because we give it in `packageManagers` but it's [not a
supported Corepack package manager][package-managers]. [It does, however,
support updating a `.bun-version` file.][renovate-bun-version] We can
switch to putting our version in that and enable the manager. We've
given `1.1.43` as the version even though `1.1.44` is the newest right
now, so we can see if the update is raised properly.

In `1.1.39` a [new, faster, diffable, text-based lockfile format was
introduced][lockfile-format]. We can switch to that too.

[lockfile-format]: https://bun.sh/blog/bun-lock-text-lockfile#cached-bun-install-gets-30-faster
[package-managers]: https://nodejs.org/api/corepack.html#supported-package-managers
[renovate-bun-version]: https://docs.renovatebot.com/modules/manager/bun-version/
  • Loading branch information
iainlane authored Jan 21, 2025
1 parent d0bbea6 commit 3b1019f
Show file tree
Hide file tree
Showing 7 changed files with 607 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/renovate-config.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
},
],
dependencyDashboard: false,
enabledManagers: ["bun", "custom.regex", "github-actions", "npm"],
enabledManagers: [
"bun",
"bun-version",
"custom.regex",
"github-actions",
"npm",
],
forkProcessing: "enabled",
globalExtends: [":pinDependencies", "config:best-practices"],
onboarding: false,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install bun package manager
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
with:
bun-version-file: "actions/lint-pr-title/package.json"
bun-version-file: actions/lint-pr-title/.bun-version

- name: Install lint-pr-title dependencies
run: bun install --frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions actions/lint-pr-title/.bun-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.43
2 changes: 1 addition & 1 deletion actions/lint-pr-title/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
- name: Install bun package manager
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
with:
bun-version-file: actions/lint-pr-title/package.json
bun-version-file: actions/lint-pr-title/.bun-version

- name: Install dependencies
shell: sh
Expand Down
596 changes: 596 additions & 0 deletions actions/lint-pr-title/bun.lock

Large diffs are not rendered by default.

Binary file removed actions/lint-pr-title/bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions actions/lint-pr-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@
"prettier": "3.4.2",
"typescript": "5.7.3",
"typescript-eslint": "8.21.0"
},
"packageManager": "[email protected]"
}
}

0 comments on commit 3b1019f

Please sign in to comment.