Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e84d33

Browse files
committed
chore: configure publish target
1 parent 958b56f commit 5e84d33

File tree

5 files changed

+27
-67
lines changed

5 files changed

+27
-67
lines changed

libs/cdk/project.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,7 @@
5353
"outputs": ["{workspaceRoot}/coverage/cdk"]
5454
},
5555
"publish": {
56-
"executor": "nx:run-commands",
57-
"options": {
58-
"commands": [
59-
{
60-
"command": "npm publish dist/libs/cdk"
61-
}
62-
]
63-
},
64-
"dependsOn": [
65-
{
66-
"target": "lint"
67-
},
68-
{
69-
"target": "test"
70-
},
71-
{
72-
"target": "version"
73-
},
74-
{
75-
"target": "build"
76-
}
77-
]
56+
"command": "npm publish dist/libs/cdk"
7857
},
7958
"version": {
8059
"executor": "@jscutlery/semver:version",

libs/isr/project.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@
4646
"libs/isr/server/**/*.html"
4747
]
4848
}
49+
},
50+
"publish": {
51+
"command": "npm publish dist/libs/isr"
52+
},
53+
"version": {
54+
"executor": "@jscutlery/semver:version",
55+
"options": {
56+
"noVerify": true,
57+
"baseBranch": "main",
58+
"versionTagPrefix": "${target}@",
59+
"commitMessageFormat": "release(${projectName}): ${version}",
60+
"postTargets": ["isr:github"],
61+
"push": true
62+
}
63+
},
64+
"github": {
65+
"executor": "@jscutlery/semver:github",
66+
"options": {
67+
"tag": "${tag}",
68+
"notes": "${notes}"
69+
}
4970
}
5071
}
5172
}

libs/state/project.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,7 @@
7474
}
7575
},
7676
"publish": {
77-
"executor": "nx:run-commands",
78-
"options": {
79-
"commands": [
80-
{
81-
"command": "npm publish dist/libs/state"
82-
}
83-
]
84-
},
85-
"dependsOn": [
86-
{
87-
"target": "lint"
88-
},
89-
{
90-
"target": "test"
91-
},
92-
{
93-
"target": "version"
94-
},
95-
{
96-
"target": "build"
97-
}
98-
]
77+
"command": "npm publish dist/libs/state"
9978
},
10079
"version": {
10180
"executor": "@jscutlery/semver:version",

libs/template/project.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,7 @@
6969
}
7070
},
7171
"publish": {
72-
"executor": "nx:run-commands",
73-
"options": {
74-
"commands": [
75-
{
76-
"command": "npm publish dist/libs/template"
77-
}
78-
]
79-
},
80-
"dependsOn": [
81-
{
82-
"target": "lint"
83-
},
84-
{
85-
"target": "test"
86-
},
87-
{
88-
"target": "version"
89-
},
90-
{
91-
"target": "build"
92-
}
93-
]
72+
"command": "npm publish dist/libs/template"
9473
},
9574
"version": {
9675
"executor": "@jscutlery/semver:version",

nx.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"npmScope": "rx-angular",
32
"tasksRunnerOptions": {
43
"default": {
54
"runner": "nx-cloud",
@@ -78,6 +77,9 @@
7877
},
7978
"component-test": {
8079
"inputs": ["default", "^production"]
80+
},
81+
"publish": {
82+
"dependsOn": ["lint", "test", "version", "build"]
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)