Skip to content

Commit

Permalink
ci: publish should be depended on build
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 30, 2024
1 parent aa71788 commit c64f097
Show file tree
Hide file tree
Showing 18 changed files with 92 additions and 127 deletions.
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
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
14 changes: 6 additions & 8 deletions projects/taiga-schematics/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading

0 comments on commit c64f097

Please sign in to comment.