Skip to content

Commit b3303cf

Browse files
committed
chore: update publish script
1 parent fec8115 commit b3303cf

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
with:
2020
node-version: 10.x
2121

22-
- run: yarn install --immutable
23-
- run: yarn release
22+
- run: yarn install
23+
- run: yarn publish

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@
1212
"build:all": "lerna run build --stream",
1313
"deploy": "cross-env ENV=production ./scripts/deploy.sh",
1414
"prettier": "prettier --write .",
15-
"release": "run-s clean build test release:npm",
16-
"release:npm": "./scripts/release.sh",
17-
"publish:beta": "lerna version prerelease --preid beta --force-publish --yes",
1815
"cy:test": "cypress run",
1916
"cy:open": "cypress open",
2017
"test": "jest",
2118
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
2219
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
23-
"lerna:version": "lerna version --conventional-commits --yes",
24-
"lerna:prerelease": "yarn lerna:version --conventional-prerelease --yes",
25-
"lerna:publish": "lerna publish from-git --yes"
20+
"prerelease": "lerna version --yes --conventional-commits --conventional-prerelease",
21+
"release": "lerna version --yes --conventional-commits --conventional-graduate",
22+
"publish": "./scripts/publish.sh"
2623
},
2724
"devDependencies": {
2825
"@babel/cli": "^7.7.4",

scripts/release.sh renamed to scripts/publish.sh

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
# https://github.com/vercel/next.js/blob/canary/publish-release.sh
44

5+
set -e
6+
7+
yarn clean
8+
9+
yarn build
10+
11+
yarn test
12+
513
git describe --exact-match
614

715
if [[ ! $? -eq 0 ]];then

0 commit comments

Comments
 (0)