Skip to content

Commit fc4949e

Browse files
jrolfsclaude
andcommitted
fix(fork): own tags + releases instead of feeding changesets/action
changesets/action scans the publish command's stdout for "New tag:" lines and requires each name to resolve to a workspace package. Our rescoped names (@meterup/pascal-*) never match the workspace (source stays @pascal-app/*), so the action threw "Package not found" and failed the job — even though the packages had already published and tagged successfully. Stop printing "New tag:" lines and create the GitHub Releases directly in publish-fork.ts (alongside the git tags we already push), named after what was actually published. Best-effort so re-runs don't fail. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 480483e commit fc4949e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/publish-fork.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { extname, join } from "node:path";
1010
// only inside the published tarball.
1111
//
1212
// Names are rescoped AND re-prefixed: `@pascal-app/<x>` -> `${SCOPE}/pascal-<x>`
13-
// (e.g. @pascal-app/viewer -> @jrolfs/pascal-viewer). The `pascal-` prefix keeps
13+
// (e.g. @pascal-app/viewer -> @meterup/pascal-viewer). The `pascal-` prefix keeps
1414
// the published names meaningful outside the upstream scope, where bare names
1515
// like `core`/`viewer` would be too generic.
1616
//
@@ -24,9 +24,9 @@ import { extname, join } from "node:path";
2424
// only thing that changes. Auth comes from .npmrc (NODE_AUTH_TOKEN).
2525

2626
const SOURCE_PREFIX = "@pascal-app/";
27-
const SCOPE = process.env.PUBLISH_SCOPE ?? "@jrolfs";
27+
const SCOPE = process.env.PUBLISH_SCOPE ?? "@meterup";
2828
const NAME_PREFIX = "pascal-"; // always prefix published names under the fork scope
29-
const TARGET_PREFIX = `${SCOPE}/${NAME_PREFIX}`; // e.g. "@jrolfs/pascal-"
29+
const TARGET_PREFIX = `${SCOPE}/${NAME_PREFIX}`; // e.g. "@meterup/pascal-"
3030
const REGISTRY = "https://npm.pkg.github.com";
3131
const DRY_RUN = process.argv.includes("--dry-run");
3232
const IN_CI = process.env.GITHUB_ACTIONS === "true";

0 commit comments

Comments
 (0)