mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fixed missed __dirname reference (#496)
This commit is contained in:
@@ -6,7 +6,7 @@ import pkgJson from "../package.json" with { type: "json" };
|
|||||||
const tag = `v${pkgJson.version}`;
|
const tag = `v${pkgJson.version}`;
|
||||||
const releaseLine = "pr-release";
|
const releaseLine = "pr-release";
|
||||||
|
|
||||||
process.chdir(path.join(__dirname, ".."));
|
process.chdir(path.join(import.meta.dirname, ".."));
|
||||||
|
|
||||||
await exec("git", ["checkout", "--detach"]);
|
await exec("git", ["checkout", "--detach"]);
|
||||||
await exec("git", ["add", "--force", "dist"]);
|
await exec("git", ["add", "--force", "dist"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user