mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Update to changesets v3 packages (#673)
* Update to changesets v3 packages * Dedupe * Fix test * Fix test 2 * update more --------- Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
co-authored by
Mateusz Burzyński
parent
b12c36a7bf
commit
823cf741ca
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": major
|
||||||
|
---
|
||||||
|
|
||||||
|
Update to Changesets v3 packages
|
||||||
+9
-9
@@ -21,12 +21,12 @@
|
|||||||
"@actions/core": "^3.0.1",
|
"@actions/core": "^3.0.1",
|
||||||
"@actions/exec": "^3.0.0",
|
"@actions/exec": "^3.0.0",
|
||||||
"@actions/github": "^9.1.1",
|
"@actions/github": "^9.1.1",
|
||||||
"@changesets/get-release-plan": "^4.0.16",
|
"@changesets/get-release-plan": "^5.0.0-next.6",
|
||||||
"@changesets/ghcommit": "^2.1.1",
|
"@changesets/ghcommit": "^2.1.1",
|
||||||
"@changesets/git": "^3.0.4",
|
"@changesets/git": "^4.0.0-next.5",
|
||||||
"@changesets/pre": "^2.0.2",
|
"@changesets/pre": "^3.0.0-next.5",
|
||||||
"@changesets/read": "^0.6.7",
|
"@changesets/read": "^1.0.0-next.6",
|
||||||
"@manypkg/get-packages": "^1.1.3",
|
"@manypkg/get-packages": "^3.1.0",
|
||||||
"@octokit/core": "^7.0.6",
|
"@octokit/core": "^7.0.6",
|
||||||
"@octokit/plugin-throttling": "^11.0.3",
|
"@octokit/plugin-throttling": "^11.0.3",
|
||||||
"human-id": "^4.1.3",
|
"human-id": "^4.1.3",
|
||||||
@@ -35,10 +35,10 @@
|
|||||||
"tinyexec": "^1.2.4"
|
"tinyexec": "^1.2.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/changelog-github": "^0.7.0",
|
"@changesets/changelog-github": "^1.0.0-next.5",
|
||||||
"@changesets/cli": "^2.31.0",
|
"@changesets/cli": "^3.0.0-next.6",
|
||||||
"@changesets/types": "^6.1.0",
|
"@changesets/types": "^7.0.0-next.5",
|
||||||
"@changesets/write": "^0.4.0",
|
"@changesets/write": "^1.0.0-next.5",
|
||||||
"@tsconfig/node24": "^24.0.4",
|
"@tsconfig/node24": "^24.0.4",
|
||||||
"@types/node": "^24.12.4",
|
"@types/node": "^24.12.4",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
|
|||||||
Generated
+266
-705
File diff suppressed because it is too large
Load Diff
+11
-1
@@ -3,7 +3,17 @@ dedupePeers: true
|
|||||||
dedupePeerDependents: true
|
dedupePeerDependents: true
|
||||||
minimumReleaseAge: 10080
|
minimumReleaseAge: 10080
|
||||||
minimumReleaseAgeExclude:
|
minimumReleaseAgeExclude:
|
||||||
- "@changesets/ghcommit@2.1.1"
|
- "@changesets/apply-release-plan@8.0.0-next.6"
|
||||||
|
- "@changesets/assemble-release-plan@7.0.0-next.6"
|
||||||
|
- "@changesets/changelog-github@1.0.0-next.5"
|
||||||
|
- "@changesets/cli@3.0.0-next.6"
|
||||||
|
- "@changesets/get-release-plan@5.0.0-next.6"
|
||||||
|
- "@changesets/git@4.0.0-next.5"
|
||||||
|
- "@changesets/parse@1.0.0-next.6"
|
||||||
|
- "@changesets/pre@3.0.0-next.5"
|
||||||
|
- "@changesets/read@1.0.0-next.6"
|
||||||
|
- "@changesets/types@7.0.0-next.5"
|
||||||
|
- "@changesets/write@1.0.0-next.5"
|
||||||
|
|
||||||
overrides:
|
overrides:
|
||||||
lightningcss: "-" # we do not bundle any css
|
lightningcss: "-" # we do not bundle any css
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as github from "@actions/github";
|
import * as github from "@actions/github";
|
||||||
import getReleasePlan from "@changesets/get-release-plan";
|
import { getReleasePlan } from "@changesets/get-release-plan";
|
||||||
import type {
|
import type {
|
||||||
ComprehensiveRelease,
|
ComprehensiveRelease,
|
||||||
ReleasePlan,
|
ReleasePlan,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
import type * as github from "@actions/github";
|
import type * as github from "@actions/github";
|
||||||
import getReleasePlan from "@changesets/get-release-plan";
|
import { getReleasePlan } from "@changesets/get-release-plan";
|
||||||
import { createFixture } from "fs-fixture";
|
import { createFixture } from "fs-fixture";
|
||||||
import { exec } from "tinyexec";
|
import { exec } from "tinyexec";
|
||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
@@ -28,6 +28,7 @@ describe("getPullRequestWorktree", () => {
|
|||||||
private: true,
|
private: true,
|
||||||
workspaces: ["packages/*"],
|
workspaces: ["packages/*"],
|
||||||
}),
|
}),
|
||||||
|
"package-lock.json": "",
|
||||||
"packages/pkg-a/package.json": JSON.stringify({
|
"packages/pkg-a/package.json": JSON.stringify({
|
||||||
name: "pkg-a",
|
name: "pkg-a",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { readPreState } from "@changesets/pre";
|
import { readPreState } from "@changesets/pre";
|
||||||
import readChangesets from "@changesets/read";
|
import { readChangesets } from "@changesets/read";
|
||||||
import type { PreState, NewChangeset } from "@changesets/types";
|
import type { PreState, NewChangeset } from "@changesets/types";
|
||||||
|
|
||||||
export type ChangesetState = {
|
export type ChangesetState = {
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,6 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { Changeset } from "@changesets/types";
|
import type { Changeset } from "@changesets/types";
|
||||||
import writeChangeset from "@changesets/write";
|
import { writeChangeset } from "@changesets/write";
|
||||||
import { createFixture } from "fs-fixture";
|
import { createFixture } from "fs-fixture";
|
||||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import { GitHub } from "./github.ts";
|
import { GitHub } from "./github.ts";
|
||||||
@@ -56,6 +56,7 @@ function createSimpleProjectFixture() {
|
|||||||
private: true,
|
private: true,
|
||||||
workspaces: ["packages/*"],
|
workspaces: ["packages/*"],
|
||||||
}),
|
}),
|
||||||
|
"package-lock.json": "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,6 +83,7 @@ function createIgnoredPackageFixture() {
|
|||||||
private: true,
|
private: true,
|
||||||
workspaces: ["packages/*"],
|
workspaces: ["packages/*"],
|
||||||
}),
|
}),
|
||||||
|
"package-lock.json": "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -117,7 +117,7 @@ export async function runPublish({
|
|||||||
let { packages, tool } = await getPackages(cwd);
|
let { packages, tool } = await getPackages(cwd);
|
||||||
let releasedPackages: Package[] = [];
|
let releasedPackages: Package[] = [];
|
||||||
|
|
||||||
if (tool !== "root") {
|
if (tool.type !== "root") {
|
||||||
let newTagRegex = /New tag:\s+(@[^/]+\/[^@]+|[^/]+)@([^\s]+)/;
|
let newTagRegex = /New tag:\s+(@[^/]+\/[^@]+|[^/]+)@([^\s]+)/;
|
||||||
let packagesByName = new Map(packages.map((x) => [x.packageJson.name, x]));
|
let packagesByName = new Map(packages.map((x) => [x.packageJson.name, x]));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user