Skip to content

Commit a455060

Browse files
committed
build(window): add versioning and publishing targets to project.json
Introduce automated semantic versioning and npm publishing for the electron window library. This includes a new `version` target using `@jscutlery/semver` and a `publish` target utilizing `nx:run-commands`, enabling streamlined release workflows.
1 parent 83cb562 commit a455060

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

libs/electron/window/project.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@
3535
"options": {
3636
"jestConfig": "libs/electron/window/jest.config.ts"
3737
}
38+
},
39+
"version": {
40+
"executor": "@jscutlery/semver:version",
41+
"options": {
42+
"syncVersions": false,
43+
"push": true,
44+
"pushTags": true,
45+
"trackDeps": true
46+
}
47+
},
48+
"publish": {
49+
"executor": "nx:run-commands",
50+
"options": {
51+
"parallel": false,
52+
"commands": ["cd dist/libs/electron/window && npm publish"]
53+
},
54+
"dependsOn": ["version", "build"],
55+
"parallelism": false
3856
}
3957
}
4058
}

0 commit comments

Comments
 (0)