@ucdjs/release-scripts 0.1.0-beta.19 → 0.1.0-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -20,6 +20,7 @@ const args = mri(process.argv.slice(2));
20
20
  const isDryRun = !!args.dry;
21
21
  const isVerbose = !!args.verbose;
22
22
  const isForce = !!args.force;
23
+ const ucdjsReleaseOverridesPath = ".github/ucdjs-release.overrides.json";
23
24
  const isCI = typeof process.env.CI === "string" && process.env.CI !== "" && process.env.CI.toLowerCase() !== "false";
24
25
  const logger = {
25
26
  info: (...args$1) => {
@@ -611,8 +612,9 @@ var GitHubClient = class {
611
612
  ...init,
612
613
  headers: {
613
614
  ...init.headers,
614
- Accept: "application/vnd.github.v3+json",
615
- Authorization: `token ${this.githubToken}`
615
+ "Accept": "application/vnd.github.v3+json",
616
+ "Authorization": `token ${this.githubToken}`,
617
+ "User-Agent": "ucdjs-release-scripts (+https://github.com/ucdjs/ucdjs-release-scripts)"
616
618
  }
617
619
  });
618
620
  if (!res.ok) {
@@ -1507,7 +1509,7 @@ async function release(options) {
1507
1509
  pullRequestBody: options.pullRequest?.body
1508
1510
  });
1509
1511
  await prOps.prepareBranch();
1510
- const overridesPath = join(workspaceRoot, ".github", "ucdjs-release.overrides.json");
1512
+ const overridesPath = join(workspaceRoot, ucdjsReleaseOverridesPath);
1511
1513
  let existingOverrides = {};
1512
1514
  try {
1513
1515
  const overridesContent = await readFile(overridesPath, "utf-8");
@@ -1687,7 +1689,7 @@ async function verify(options) {
1687
1689
  logger.info(`Found release PR #${releasePr.number}. Verifying against default branch "${defaultBranch}"...`);
1688
1690
  const originalBranch = await getCurrentBranch(workspaceRoot);
1689
1691
  if (originalBranch !== defaultBranch) await checkoutBranch(defaultBranch, workspaceRoot);
1690
- const overridesPath = join(".github", "ucdjs.release.overrides.json");
1692
+ const overridesPath = join(workspaceRoot, ucdjsReleaseOverridesPath);
1691
1693
  let existingOverrides = {};
1692
1694
  try {
1693
1695
  const overridesContent = await readFileFromGit(workspaceRoot, releasePr.head.sha, overridesPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdjs/release-scripts",
3
- "version": "0.1.0-beta.19",
3
+ "version": "0.1.0-beta.20",
4
4
  "description": "@ucdjs release scripts",
5
5
  "type": "module",
6
6
  "license": "MIT",