Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jul 11, 2024
1 parent c6a58e9 commit b0d6868
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- name: Run build packages
run: npx nx run-many --target=build --parallel=1
- run: npx nx run-many --target=build --projects=tag:libs
- run: npx nx run-many --target=build --projects=tag:apps

concurrency:
group: build-${{ github.head_ref }}
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ package-lock.json
.angular

/.nx/cache
/.nx/workspace-data
/.nx/workspace-data
CHANGELOG.md
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
},
"hooks": {
"after:bump": "npx nx run-many --target=build --output-style=stream && npx nx run-many --target=publish --output-style=stream",
"after:bump": "npx nx run-many --target=publish --projects=tag:libs",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
}
}
1 change: 1 addition & 0 deletions apps/cdk-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/cdk-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/excel-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/excel-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/flex-layout-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/flex-layout-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/http-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/http-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/logger-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/logger-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/ngxs-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/ngxs-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/tooltip-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/tooltip-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
1 change: 1 addition & 0 deletions apps/virtual-table-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/virtual-table-demo/",
"projectType": "application",
"tags": ["apps"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
2 changes: 1 addition & 1 deletion libs/cdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular-ru/cdk",
"version": "16.0.0",
"version": "18.0.0",
"description": "Angular-RU package",
"homepage": "https://github.com/Angular-RU/angular-ru-sdk/tree/master/libs/cdk#readme",
"bugs": "https://github.com/Angular-RU/angular-ru-sdk/issues",
Expand Down
15 changes: 11 additions & 4 deletions libs/cdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/cdk/",
"projectType": "library",
"tags": ["libs"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "tsconfig.lib.json",
"project": "libs/cdk/ng-package.json"
"project": "libs/{projectName}/ng-package.json"
},
"outputs": ["{projectRoot}/dist/cdk"]
"outputs": ["{projectRoot}/dist/{projectName}"]
},
"publish": {
"executor": "nx:run-commands",
"options": {
"command": "npm publish ./dist/cdk --ignore-scripts || echo \"already published\""
}
"command": "npm publish ./dist/{projectName} --ignore-scripts || echo \"already published\""
},
"dependsOn": [
{
"target": "build",
"params": "ignore"
}
]
}
}
}
2 changes: 1 addition & 1 deletion libs/ngxs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular-ru/ngxs",
"version": "16.0.0",
"version": "18.0.0",
"description": "Angular-RU package",
"homepage": "https://github.com/Angular-RU/angular-ru-sdk/tree/master/libs/cdk#readme",
"bugs": "https://github.com/Angular-RU/angular-ru-sdk/issues",
Expand Down
18 changes: 13 additions & 5 deletions libs/ngxs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,34 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/ngxs/",
"projectType": "library",
"tags": ["libs"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "tsconfig.lib.json",
"project": "libs/ngxs/ng-package.json"
"project": "libs/{projectName}/ng-package.json"
},
"outputs": ["{projectRoot}/dist/ngxs"],
"outputs": ["{projectRoot}/dist/{projectName}"],
"dependsOn": [
{
"dependencies": true,
"target": "build",
"dependencies": true
"params": "ignore"
}
]
},
"publish": {
"executor": "nx:run-commands",
"options": {
"command": "npm publish ./node_modules/@angular-ru/ngxs --ignore-scripts || echo \"already published\""
}
"command": "npm publish ./dist/{projectName} --ignore-scripts || echo \"already published\""
},
"dependsOn": [
{
"target": "build",
"params": "ignore"
}
]
}
}
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0d6868

Please sign in to comment.