Skip to content

Commit

Permalink
Fix: changeset (#1346)
Browse files Browse the repository at this point in the history
* f

* add script

* rm

* fix

* f

* f

* f
  • Loading branch information
samijaber authored Jan 26, 2024
1 parent a828cd9 commit e913d91
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-pumpkins-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/mitosis-cli': patch
---

fix release
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
# Workaround for https://github.com/changesets/changesets/issues/432
publish: yarn workspace @builder.io/mitosis-cli fix-core-version && yarn changeset publish
title: "📦 Publish Packages"
commit: "📦 Publish Packages"
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"tsc-alias": "tsc-alias -p tsconfig.build.json --verbose",
"start": "concurrently --kill-others \"tsc --watch\" \"yarn tsc-alias --watch\"",
"build": "yarn format && yarn clean-build && yarn compile && yarn tsc-alias",
"prepublishOnly": "yarn build",
"fix-core-version": "./scripts/fix-core-version.sh",
"remove-stableVersion": "./scripts/remove-stableVersion.sh",
"release:dev": "yarn build && yarn run remove-stableVersion && yarn version prerelease && yarn npm publish --tag dev",
"release:patch": "yarn build && yarn run remove-stableVersion && yarn version patch && yarn npm publish",
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/scripts/fix-core-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# !/bin/bash

# This script is used to update the version of @builderio/mitosis in the CLI package dependencies
# Workaround for https://github.com/changesets/changesets/issues/432

VERSION_NUMBER=$(jq -r '.version' ../core/package.json)

echo "Updating package.json to use version $VERSION_NUMBER of @builder.io/mitosis"
jq --arg VERSION_NUMBER $VERSION_NUMBER '.dependencies."@builder.io/mitosis" = $VERSION_NUMBER' package.json >temp.json && mv temp.json package.json
22 changes: 0 additions & 22 deletions packages/cli/scripts/test-new.sh

This file was deleted.

15 changes: 0 additions & 15 deletions packages/cli/scripts/test.sh

This file was deleted.

1 comment on commit e913d91

@vercel
Copy link

@vercel vercel bot commented on e913d91 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.