Skip to content

Commit

Permalink
chore: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed May 23, 2021
1 parent fec8115 commit b3303cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
with:
node-version: 10.x

- run: yarn install --immutable
- run: yarn release
- run: yarn install
- run: yarn publish
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@
"build:all": "lerna run build --stream",
"deploy": "cross-env ENV=production ./scripts/deploy.sh",
"prettier": "prettier --write .",
"release": "run-s clean build test release:npm",
"release:npm": "./scripts/release.sh",
"publish:beta": "lerna version prerelease --preid beta --force-publish --yes",
"cy:test": "cypress run",
"cy:open": "cypress open",
"test": "jest",
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lerna:version": "lerna version --conventional-commits --yes",
"lerna:prerelease": "yarn lerna:version --conventional-prerelease --yes",
"lerna:publish": "lerna publish from-git --yes"
"prerelease": "lerna version --yes --conventional-commits --conventional-prerelease",
"release": "lerna version --yes --conventional-commits --conventional-graduate",
"publish": "./scripts/publish.sh"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
Expand Down
8 changes: 8 additions & 0 deletions scripts/release.sh → scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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

set -e

yarn clean

yarn build

yarn test

git describe --exact-match

if [[ ! $? -eq 0 ]];then
Expand Down

0 comments on commit b3303cf

Please sign in to comment.