Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 095244e

Browse files
committed
updated release script
1 parent 79ebac9 commit 095244e

File tree

11 files changed

+17
-21
lines changed

11 files changed

+17
-21
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ jobs:
2222
- name: ⏳ Install
2323
run: yarn install
2424

25-
# Build packages
26-
- name: 🔨 Build Packages
27-
run: yarn run build
28-
2925
# Create Release Pull Request
3026
- name: 📤 Create Release Pull Request or Publish to NPM
3127
uses: changesets/action@master
3228
with:
33-
publish: yarn release
29+
publish: yarn release:prepare
3430
commit: Version Release
3531
title: Next Release
3632
env:

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
"install:packages": "lerna exec yarn install",
3333
"install:packages:clean": "lerna run install:clean",
3434
"version:bump": "changeset",
35-
"release": "lerna run release && changeset publish",
35+
"release:prepare": "lerna run release:prepare && changeset publish",
3636
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
3737
"lint": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",
38-
"pack": "lerna run prepare && lerna run pack",
39-
"pack:core": "cd packages/core && yarn run prepare && yarn run pack",
40-
"pack:react": "cd packages/react && yarn run prepare && yarn run pack",
41-
"pack:multieditor": "cd packages/multieditor && yarn run prepare && yarn run pack",
42-
"pack:api": "cd packages/api && yarn run prepare && yarn run pack",
43-
"pack:event": "cd packages/event && yarn run prepare && yarn run pack",
38+
"pack": "lerna run build && lerna run pack",
39+
"pack:core": "cd packages/core && yarn run build && yarn run pack",
40+
"pack:react": "cd packages/react && yarn run build && yarn run pack",
41+
"pack:multieditor": "cd packages/multieditor && yarn run build && yarn run pack",
42+
"pack:api": "cd packages/api && yarn run build && yarn run pack",
43+
"pack:event": "cd packages/event && yarn run build && yarn run pack",
4444
"install:clean": "shx rm -rf yarn.lock && shx rm -rf node_modules && yarn install && lerna run install:clean"
4545
},
4646
"repository": {

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dev:push": "yalc push",
3131
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3232
"watch": "shx rm -rf dist && tsc -w",
33-
"release": "yarn run prepare",
33+
"release:prepare": "yarn run build",
3434
"release:manual": "yarn run release && npm publish",
3535
"pack": "npm pack",
3636
"test": "jest",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dev:push": "yalc push",
4242
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
4343
"watch": "shx rm -rf dist && tsc -w",
44-
"release": "node ./scripts/prepublish.js && yarn run prepare",
44+
"release:prepare": "node ./scripts/prepublish.js && yarn run build",
4545
"release:manual": "yarn run release && npm publish && git checkout README.md",
4646
"pack": "npm pack",
4747
"test": "jest",

packages/event/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dev:push": "yalc push",
3030
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3131
"watch": "shx rm -rf dist && tsc -w",
32-
"release": "yarn run prepare",
32+
"release:prepare": "yarn run build",
3333
"release:manual": "yarn run release && npm publish",
3434
"pack": "npm pack",
3535
"test": "jest",

packages/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dev:push": "yalc push",
3030
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3131
"watch": "shx rm -rf dist && tsc -w",
32-
"release": "yarn run prepare",
32+
"release:prepare": "yarn run build",
3333
"release:manual": "yarn run release && npm publish",
3434
"pack": "npm pack",
3535
"test": "jest",

packages/multieditor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dev:push": "yalc push",
3434
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3535
"watch": "shx rm -rf dist && tsc -w",
36-
"release": "yarn run prepare",
36+
"release:prepare": "yarn run build",
3737
"release:manual": "yarn run release && npm publish",
3838
"pack": "npm pack",
3939
"test": "jest",

packages/proxytree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dev:push": "yalc push",
3030
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3131
"watch": "shx rm -rf dist && tsc -w",
32-
"release": "yarn run prepare",
32+
"release:prepare": "yarn run build",
3333
"release:manual": "yarn run release && npm publish",
3434
"pack": "npm pack",
3535
"test": "jest",

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"dev:push": "yalc push",
5959
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
6060
"watch": "shx rm -rf dist && tsc -w",
61-
"release": "yarn run prepare",
61+
"release:prepare": "yarn run build",
6262
"release:manual": "yarn run release && npm publish",
6363
"pack": "npm pack",
6464
"test": "jest",

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dev:push": "yalc push",
2929
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3030
"watch": "shx rm -rf dist && tsc -w",
31-
"release": "yarn run prepare",
31+
"release:prepare": "yarn run build",
3232
"release:manual": "yarn run release && npm publish",
3333
"pack": "npm pack",
3434
"test": "jest",

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dev:push": "yalc push",
3232
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
3333
"watch": "shx rm -rf dist && tsc -w",
34-
"release": "yarn run prepare",
34+
"release:prepare": "yarn run build",
3535
"release:manual": "yarn run release && npm publish",
3636
"pack": "npm pack",
3737
"test": "jest",

0 commit comments

Comments
 (0)