diff --git a/packages/ui-components/CHANGELOG.md b/packages/ui-components/CHANGELOG.md index b14eddaf..c91af242 100644 --- a/packages/ui-components/CHANGELOG.md +++ b/packages/ui-components/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [4.0.7] - 2024-10-24 + +## [4.0.6] - 2024-10-24 + +## [4.0.5] - 2024-10-24 + ## [4.0.4] - 2024-10-24 Fix bad build instructions diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index 9834c33b..bf25833d 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@macrostrat/ui-components", - "version": "4.0.6", + "version": "4.0.7", "description": "UI components for React and Blueprint.js", "main": "dist/main.cjs", "module": "dist/module.mjs", diff --git a/scripts/publish.ts b/scripts/publish.ts index 44649b24..90d71adb 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -11,19 +11,19 @@ import { prepareModule } from "./prepare"; /* tries to run npm publish and if succeeds adds a tag to the repo*/ function publishModule(dir, pkg) { - pkg = getPackageData(pkg); - logAction(pkg, "Publishing", chalk.magenta); + const pkgData = getPackageData(pkg); + logAction(pkgData, "Publishing", chalk.magenta); try { execSync("yarn npm publish --access public", { cwd: dir, stdio: "inherit", }); console.log(chalk.blueBright.bold("Tagging version")); - const tag = moduleString(pkg, "-v"); - const msg = moduleString(pkg, " version "); + const tag = moduleString(pkgData, "-v"); + const msg = moduleString(pkgData, " version "); execSync(`git tag -a ${tag} -m '${msg}'`, { cwd: dir }); } catch (error) { - console.error(`Failed to publish ${moduleString(pkg)}, ${error}`); + console.error(`Failed to publish ${moduleString(pkgData)}, ${error}`); } }