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

ci: publish should be depended on build #9273

Merged
merged 2 commits into from
Sep 30, 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
1 change: 0 additions & 1 deletion .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }}
- run: npm run run-many:build:libs
- run: npx ts-node ./scripts/publish-canary.ts

concurrency:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
id: info
Expand Down
14 changes: 6 additions & 8 deletions projects/addon-charts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/addon-commerce/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import {Location} from '@angular/common';
import {type OnChanges, type OnInit, signal} from '@angular/core';
import {Directive, EventEmitter, inject, Input, Output, TemplateRef} from '@angular/core';
import type {OnChanges, OnInit} from '@angular/core';
import {
Directive,
EventEmitter,
inject,
Input,
Output,
signal,
TemplateRef,
} from '@angular/core';
import type {Params} from '@angular/router';
import {ActivatedRoute, UrlSerializer} from '@angular/router';
import {TUI_DOC_URL_STATE_HANDLER} from '@taiga-ui/addon-doc/tokens';
Expand Down
14 changes: 6 additions & 8 deletions projects/addon-doc/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/addon-mobile/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/addon-table/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/cdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/experimental/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/i18n/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/kit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/layout/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/legacy/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
"testMatch": ["<rootDir>/{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
}
Expand Down
14 changes: 6 additions & 8 deletions projects/styles/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading
Loading