diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index cb79336e1..b038f7bec 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @farmfe/core +## 0.1.2 + +### Patch Changes + +- Bump versin + ## 0.1.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 064577855..8ce838c15 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@farmfe/core", - "version": "0.1.1", + "version": "0.1.2", "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", diff --git a/scripts/release.mjs b/scripts/release.mjs index acc054f93..ea909aad6 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -3,4 +3,17 @@ import { execSync } from "child_process"; // build node packages execSync("npm run build", { stdio: "inherit" }); // publish node packages -execSync("npx changeset publish", { stdio: "inherit" }); \ No newline at end of file +execSync("npx changeset publish", { stdio: "inherit" }); + +// publish all packages under packages/core/npm +// TODO: investigate why napi prepublish doesn't work +const packages = [ + 'darwin-x64', + 'darwin-arm64', + 'linux-x64-gnu', + 'win32-x64-msvc', +]; + +packages.forEach((pkg) => { + execSync(`npm publish packages/core/npm/${pkg}`, { stdio: "inherit" }); +}); \ No newline at end of file