The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
chore: v2.0.0
vholikd5075355633a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f61a601f7..cf736641a 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,4 +1,4 @@-name: Canary Release+name: Releaseon:push:@@ -33,13 +33,22 @@ jobs:- name: Buildrun: bun run build+ - name: Determine npm tag+ id: npm-tag+ run: |+ if [[ "${{ github.ref_name }}" == *canary* ]]; then+ echo "tag=canary" >> "$GITHUB_OUTPUT"+ else+ echo "tag=latest" >> "$GITHUB_OUTPUT"+ fi+- name: Publish to npmrun: |for dir in packages/*/ packages/providers/*/; doif [ -f "$dir/package.json" ] && ! grep -q '"private": true' "$dir/package.json"; then- echo "Publishing $dir..."+ echo "Publishing $dir with --tag ${{ steps.npm-tag.outputs.tag }}..."cd "$dir"- npm publish --access public --no-git-checks --tag canary+ npm publish --access public --no-git-checks --tag ${{ steps.npm-tag.outputs.tag }}cd -fidonediff --git a/RELEASING.md b/RELEASING.mdindex 32ebe091d..fb69b6454 100644--- a/RELEASING.md+++ b/RELEASING.md@@ -1,6 +1,9 @@# Releasing-All packages are published under the `@mercurjs` scope with the `canary` npm tag.+All packages are published under the `@mercurjs` scope on npm.++- **Stable** releases use the `latest` npm tag (default)+- **Canary** releases use the `canary` npm tag## Published Packages@@ -17,31 +20,56 @@ All packages are published under the `@mercurjs` scope with the `canary` npm tag## How to Release+### Stable Release+1. Bump the version in every package's `package.json`:```-"version": "2.0.0-canary.X"+"version": "2.X.Y"```-Where `X` is the next incremental number (0, 1, 2, ...).-2. Commit and tag:```bashgit add -A-git commit -m "chore: v2.0.0-canary.X"-git tag v2.0.0-canary.X-git push origin <branch> --tags+git commit -m "chore: v2.X.Y"+git tag v2.X.Y+git push origin main --tags```3. The GitHub Action (`.github/workflows/release.yml`) triggers automatically and:- Generates a GitHub Release with changelog via `changelogithub`- Builds all packages with `bun run build` (Turborepo)- - Publishes every non-private package to npm with `--tag canary`+ - Publishes every non-private package to npm with `--tag latest`++### Canary Release++1. Bump the version in every package's `package.json`:++```+"version": "2.X.Y-canary.Z"+```-## Installing Canary Packages+Where `Z` is the next incremental number (0, 1, 2, ...).++2. Commit and tag:```bash+git add -A+git commit -m "chore: v2.X.Y-canary.Z"+git tag v2.X.Y-canary.Z+git push origin canary --tags+```++3. The GitHub Action detects `canary` in the tag name and publishes with `--tag canary`.++## Installing Packages++```bash+# Stable (latest)+npm install @mercurjs/cli++# Canarynpm install @mercurjs/cli@canary```@@ -50,9 +78,10 @@ npm install @mercurjs/cli@canary```v2.0.0-canary.0 # first canaryv2.0.0-canary.1 # second canary-v2.0.0-canary.2 # third canary...-v2.0.0 # stable (when ready)+v2.0.0 # stable+v2.0.1 # patch+v2.1.0 # minor```## Requirementsdiff --git a/packages/admin/package.json b/packages/admin/package.jsonindex eee039ddf..96723aa64 100644--- a/packages/admin/package.json+++ b/packages/admin/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/admin",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex a7cf7952b..b1cb1e1e9 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/cli",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/client/package.json b/packages/client/package.jsonindex 14e50c109..56c1e5e87 100644--- a/packages/client/package.json+++ b/packages/client/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/client",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.jsonindex ad600be23..843d677b8 100644--- a/packages/core-plugin/package.json+++ b/packages/core-plugin/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/core-plugin",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.jsonindex 9ccef4c9a..64d27de4d 100644--- a/packages/dashboard-sdk/package.json+++ b/packages/dashboard-sdk/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/dashboard-sdk",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.jsonindex 14b774a5a..4d5ab52dc 100644--- a/packages/dashboard-shared/package.json+++ b/packages/dashboard-shared/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/dashboard-shared",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/providers/payout-stripe-connect/package.json b/packages/providers/payout-stripe-connect/package.jsonindex a69ff5008..5f50bae7f 100644--- a/packages/providers/payout-stripe-connect/package.json+++ b/packages/providers/payout-stripe-connect/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/payout-stripe-connect",- "version": "2.0.0-canary.109",+ "version": "2.0.0","description": "Stripe Connect payment provider for Mercur","private": false,"type": "module",@@ -29,7 +29,7 @@},"devDependencies": {"@medusajs/framework": "2.13.4",- "@mercurjs/types": "2.0.0-canary.109",+ "@mercurjs/types": "2.0.0","tsup": "^8.5.0"},"dependencies": {diff --git a/packages/types/package.json b/packages/types/package.jsonindex e193584ab..028277b16 100644--- a/packages/types/package.json+++ b/packages/types/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/types",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",diff --git a/packages/vendor/package.json b/packages/vendor/package.jsonindex a8de1cbd2..743d73693 100644--- a/packages/vendor/package.json+++ b/packages/vendor/package.json@@ -1,6 +1,6 @@{"name": "@mercurjs/vendor",- "version": "2.0.0-canary.109",+ "version": "2.0.0","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",