Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add build steps using turbo in automated release #5756

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,9 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: NPM Identity
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Build
run: yarn build
- name: Types
run: yarn buildTypes
- name: Publish
run: yarn lerna:publish
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ git push $REMOTE master --follow-tags
git push $REMOTE master:stable

# Publish packages to NPM
yarn build && yarn buildTypes
lerna publish from-package

# Note: If this last step breaks, you may try running `lerna publish from-git` instead.
Expand Down Expand Up @@ -314,6 +315,9 @@ gh pr --submit liferay --branch stable --draft
# If you want to see a preview first, use the `--dry-run` flag.
git push $REMOTE master --follow-tags

# Build.
yarn build && yarn buildTypes

# Publish to NPM.
# Make sure you are in the directory of the package you want to publish.
yarn publish
Expand Down
1 change: 0 additions & 1 deletion packages/clay-alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-breadcrumb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-color-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-data-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-drop-down/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-empty-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-loading-indicator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-localized-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-management-toolbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-multi-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-multi-step-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-navigation-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-pagination-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-progress-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-sticker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-time-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-toolbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/clay-upper-toolbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"buildTypes": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "yarn build && yarn buildTypes",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
Expand Down
Loading