From 24748d42aeb9cc2feb17ad27cd8c7dfd7b977859 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 7 Oct 2025 13:53:09 +0700 Subject: [PATCH] Add sources into build packages --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++ packages/client-query/package.json | 4 ++-- packages/cockroach/package.json | 4 ++-- packages/query/package.json | 2 +- packages/rest-client/package.json | 2 +- packages/sdk-types/package.json | 2 +- packages/server/package.json | 2 +- packages/shared/package.json | 2 +- packages/types/package.json | 2 +- 9 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..63bdb1cfd3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: ['main'] + tags: + - 'v0.7.*' + - 's0.7.*' + pull_request: + branches: ['main'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - uses: actions/setup-node@v3 + with: + node-version: 22 + - name: Verify Change Logs + run: node common/scripts/install-run-rush.js change --verify + - name: Rush Install + run: node common/scripts/install-run-rush.js install + - name: Rush validate + run: node common/scripts/install-run-rush.js validate --verbose + # - name: Rush test + # run: node common/scripts/install-run-rush.js test --verbose + - name: Publish packages + if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.') + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: node common/scripts/install-run-rush.js publish --include-all --publish diff --git a/packages/client-query/package.json b/packages/client-query/package.json index f8d9f5f252..a73765c115 100644 --- a/packages/client-query/package.json +++ b/packages/client-query/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", @@ -45,7 +45,7 @@ "type": "git", "url": "git+https://github.com/hcengineering/communication.git" }, - "publishConfig": { + "publishConfig": { "access": "public" }, "exports": { diff --git a/packages/cockroach/package.json b/packages/cockroach/package.json index ab0db36218..3c49ebd4f8 100644 --- a/packages/cockroach/package.json +++ b/packages/cockroach/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", @@ -46,7 +46,7 @@ "type": "git", "url": "git+https://github.com/hcengineering/communication.git" }, - "publishConfig": { + "publishConfig": { "access": "public" }, "exports": { diff --git a/packages/query/package.json b/packages/query/package.json index 0b8f965ba2..2ba3362c21 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", diff --git a/packages/rest-client/package.json b/packages/rest-client/package.json index fbebb8e639..6f7a1cb8bb 100644 --- a/packages/rest-client/package.json +++ b/packages/rest-client/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", diff --git a/packages/sdk-types/package.json b/packages/sdk-types/package.json index 6b2a0b66b1..a37e666548 100644 --- a/packages/sdk-types/package.json +++ b/packages/sdk-types/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", diff --git a/packages/server/package.json b/packages/server/package.json index b7133ef83d..dbed1fee77 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", diff --git a/packages/shared/package.json b/packages/shared/package.json index cafb9ee6ef..52860eef9b 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "../scripts/compile.js", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"", diff --git a/packages/types/package.json b/packages/types/package.json index 55e3b8b575..2c87e8b11d 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -7,13 +7,13 @@ "files": [ "lib/**/*", "types/**/*", + "src/**/*", "tsconfig.json" ], "scripts": { "build": "compile", "_phase:build": "compile transpile src", "_phase:validate": "compile validate", - "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint --fix \"src/**/*.ts\"", "format": "prettier --write src/**/*.ts && eslint --fix \"src/**/*.ts\"",