Skip to content

Commit 53bb928

Browse files
committed
deps: @npmcli/[email protected]
1 parent 2f57864 commit 53bb928

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Diff for: lib/release-please/index.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,21 @@ const main = async ({ repo: fullRepo, token, dryRun, branch }) => {
2020

2121
const [owner, repo] = fullRepo.split('/')
2222
const github = await RP.GitHub.create({ owner, repo, token })
23+
24+
// This is mostly for testing and debugging. Use environs with the
25+
// format `RELEASE_PLEASE_<manfiestOverrideConfigName>` (eg
26+
// `RELEASE_PLEASE_lastReleaseSha=<SHA>`) to set one-off config items
27+
// for the release please run without needing to commit and push the config.
28+
const manifestOverrides = Object.entries(process.env)
29+
.filter(([k, v]) => k.startsWith('RELEASE_PLEASE_') && v != null)
30+
.map(([k, v]) => [k.replace('RELEASE_PLEASE_', ''), v])
31+
2332
const manifest = await RP.Manifest.fromManifest(
2433
github,
25-
branch ?? github.repository.defaultBranch
34+
branch ?? github.repository.defaultBranch,
35+
undefined,
36+
undefined,
37+
Object.fromEntries(manifestOverrides)
2638
)
2739

2840
const pullRequests = await (dryRun ? manifest.buildPullRequests() : manifest.createPullRequests())

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"lodash": "^4.17.21",
4848
"npm-package-arg": "^9.0.1",
4949
"proc-log": "^2.0.0",
50-
"release-please": "npm:@npmcli/release-please@^14.2.4",
50+
"release-please": "npm:@npmcli/release-please@^14.2.5",
5151
"semver": "^7.3.5",
5252
"yaml": "^2.1.1"
5353
},

0 commit comments

Comments
 (0)