From 9d237eec73918aa4d924afceba38f781c5e6bc9d Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Thu, 29 Feb 2024 16:59:05 +0000 Subject: [PATCH] Fix publishing scripts (#3008) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow up to #3006 ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [x] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Add a brief release note for your PR here. --- apps/dotcom/version.ts | 2 +- packages/editor/src/version.ts | 2 +- packages/tldraw/src/lib/ui/version.ts | 3 +++ scripts/lib/publishing.ts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/dotcom/version.ts b/apps/dotcom/version.ts index 716d8609d..682114a34 100644 --- a/apps/dotcom/version.ts +++ b/apps/dotcom/version.ts @@ -1,4 +1,4 @@ // This file is automatically generated by scripts/refresh-assets.ts. // Do not edit manually. Or do, I'm a comment, not a cop. -export const version = '2.0.0-beta.4' +export const version = '2.0.0-beta.5' diff --git a/packages/editor/src/version.ts b/packages/editor/src/version.ts index 716d8609d..682114a34 100644 --- a/packages/editor/src/version.ts +++ b/packages/editor/src/version.ts @@ -1,4 +1,4 @@ // This file is automatically generated by scripts/refresh-assets.ts. // Do not edit manually. Or do, I'm a comment, not a cop. -export const version = '2.0.0-beta.4' +export const version = '2.0.0-beta.5' diff --git a/packages/tldraw/src/lib/ui/version.ts b/packages/tldraw/src/lib/ui/version.ts index 55ffdc2ac..682114a34 100644 --- a/packages/tldraw/src/lib/ui/version.ts +++ b/packages/tldraw/src/lib/ui/version.ts @@ -1 +1,4 @@ +// This file is automatically generated by scripts/refresh-assets.ts. +// Do not edit manually. Or do, I'm a comment, not a cop. + export const version = '2.0.0-beta.5' diff --git a/scripts/lib/publishing.ts b/scripts/lib/publishing.ts index eafe855eb..c5944094b 100644 --- a/scripts/lib/publishing.ts +++ b/scripts/lib/publishing.ts @@ -179,7 +179,7 @@ export async function publish() { const newVersion = packageDetails.version const unscopedName = packageDetails.name.replace('@tldraw/', '') - const url = `https://registry.npmjs.org/@tldraw/${unscopedName}/-/${unscopedName}-${newVersion}.tgz` + const url = `https://registry.npmjs.org/${packageDetails.name}/-/${unscopedName}-${newVersion}.tgz` nicelog('looking for package at url: ', url) const res = await fetch(url, { method: 'HEAD',