diff --git a/.github/workflows/publish-canary.yml b/.github/workflows/publish-canary.yml index 469eb14369ff..24b5dc093f77 100644 --- a/.github/workflows/publish-canary.yml +++ b/.github/workflows/publish-canary.yml @@ -15,7 +15,6 @@ jobs: - uses: taiga-family/ci/actions/setup/config/npm@v1.87.6 with: token: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }} - - run: npm run run-many:build:libs - run: npx ts-node ./scripts/publish-canary.ts concurrency: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e48f79384ce7..940e57038581 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,11 +17,7 @@ jobs: with: token: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }} - - name: Build publishable libraries - run: npm run run-many:build:libs - - - name: Publish libraries - run: npm run run-many:publish:libs + - run: npx nx run-many -t publish - uses: taiga-family/ci/actions/run/read-package-json@v1.87.6 id: info diff --git a/projects/addon-charts/project.json b/projects/addon-charts/project.json index 5590245d955b..c93e4936741f 100644 --- a/projects/addon-charts/project.json +++ b/projects/addon-charts/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/addon-commerce/project.json b/projects/addon-commerce/project.json index a9b3f558d71e..5836b6f7d361 100644 --- a/projects/addon-commerce/project.json +++ b/projects/addon-commerce/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/addon-doc/project.json b/projects/addon-doc/project.json index 07857326547d..8c2f29f26e53 100644 --- a/projects/addon-doc/project.json +++ b/projects/addon-doc/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/addon-mobile/project.json b/projects/addon-mobile/project.json index 2eae18097956..aada72da9011 100644 --- a/projects/addon-mobile/project.json +++ b/projects/addon-mobile/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/addon-table/project.json b/projects/addon-table/project.json index 5bae83c8b2ab..a21907a3ba1b 100644 --- a/projects/addon-table/project.json +++ b/projects/addon-table/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/cdk/project.json b/projects/cdk/project.json index 7581923a259b..ae4d6cc419a5 100644 --- a/projects/cdk/project.json +++ b/projects/cdk/project.json @@ -62,20 +62,18 @@ } ] }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/core/project.json b/projects/core/project.json index ecb8b2986d44..5194f5810138 100644 --- a/projects/core/project.json +++ b/projects/core/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/experimental/project.json b/projects/experimental/project.json index aff431572e27..f70f478176c0 100644 --- a/projects/experimental/project.json +++ b/projects/experimental/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/i18n/project.json b/projects/i18n/project.json index e7eab4b2b7ad..dcb7ec408f42 100644 --- a/projects/i18n/project.json +++ b/projects/i18n/project.json @@ -30,20 +30,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/kit/project.json b/projects/kit/project.json index 6823e0aac33e..45f7413870a2 100644 --- a/projects/kit/project.json +++ b/projects/kit/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/layout/project.json b/projects/layout/project.json index d5a50293a6da..52d6b8b7dac5 100644 --- a/projects/layout/project.json +++ b/projects/layout/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/legacy/project.json b/projects/legacy/project.json index e05cbdd29b83..074b609ce800 100644 --- a/projects/legacy/project.json +++ b/projects/legacy/project.json @@ -31,20 +31,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/styles/project.json b/projects/styles/project.json index 70361128ffcc..f6c84e10b196 100644 --- a/projects/styles/project.json +++ b/projects/styles/project.json @@ -13,20 +13,18 @@ "command": "cd {projectRoot} && npx cpy ./* '../../dist/{projectName}'" } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/taiga-schematics/project.json b/projects/taiga-schematics/project.json index 4722a5551538..f8ccdf8a55ee 100644 --- a/projects/taiga-schematics/project.json +++ b/projects/taiga-schematics/project.json @@ -20,20 +20,18 @@ } ] }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/projects/testing/project.json b/projects/testing/project.json index cd598214d1c4..f8c00509faf9 100644 --- a/projects/testing/project.json +++ b/projects/testing/project.json @@ -29,20 +29,18 @@ "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "prepublish": { - "executor": "nx:run-commands", - "options": { - "command": "cp ./LICENSE ./dist/{projectName}" - } - }, "publish": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + "parallel": false, + "commands": [ + "cp ./LICENSE ./dist/{projectName}", + "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + ] }, "dependsOn": [ { - "target": "prepublish", + "target": "build", "params": "ignore", "dependencies": false } diff --git a/scripts/publish-canary.ts b/scripts/publish-canary.ts index 03e314497555..59672a96d755 100644 --- a/scripts/publish-canary.ts +++ b/scripts/publish-canary.ts @@ -24,6 +24,6 @@ import {syncVersions} from './shared/sync-versions'; overwriteVersion(resolve('./projects/cdk/constants/version.ts'), newVersion); execute( - `npx nx run-many --target publish --all --customTag=${type} --customVersion=${newVersion} --nxBail`, + `npx nx run-many -t publish --customTag=${type} --customVersion=${newVersion}`, ); })();