From 2f1f50ffdba9383e1d141371dc2cee7beb3d0f48 Mon Sep 17 00:00:00 2001 From: Julian Jandl Date: Thu, 1 Jan 2026 17:18:17 +0100 Subject: [PATCH] chore: try nx release --- libs/cdk/project.json | 5 -- libs/eslint-plugin/project.json | 7 +-- libs/isr/project.json | 7 +-- libs/state/project.json | 5 -- libs/template/project.json | 5 -- nx.json | 82 +++++++++++++++------------------ 6 files changed, 40 insertions(+), 71 deletions(-) diff --git a/libs/cdk/project.json b/libs/cdk/project.json index b1d264a6bb..c57731bda0 100644 --- a/libs/cdk/project.json +++ b/libs/cdk/project.json @@ -38,11 +38,6 @@ }, "outputs": ["{workspaceRoot}/coverage/cdk"] }, - "publish": { - "command": "npm publish dist/libs/cdk" - }, - "version": {}, - "github": {}, "lint": { "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] diff --git a/libs/eslint-plugin/project.json b/libs/eslint-plugin/project.json index bd1f5fb619..b3b269e3b0 100644 --- a/libs/eslint-plugin/project.json +++ b/libs/eslint-plugin/project.json @@ -26,11 +26,6 @@ "main": "libs/eslint-plugin/src/index.ts", "assets": ["libs/eslint-plugin/*.md"] } - }, - "publish": { - "command": "npm publish dist/libs/eslint-plugin" - }, - "version": {}, - "github": {} + } } } diff --git a/libs/isr/project.json b/libs/isr/project.json index 1c590f4743..0969cbfdc0 100644 --- a/libs/isr/project.json +++ b/libs/isr/project.json @@ -32,11 +32,6 @@ "lint": { "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] - }, - "publish": { - "command": "npm publish dist/libs/isr" - }, - "version": {}, - "github": {} + } } } diff --git a/libs/state/project.json b/libs/state/project.json index ee1598a093..95d5e9accf 100644 --- a/libs/state/project.json +++ b/libs/state/project.json @@ -56,11 +56,6 @@ "buildTarget": "state:perfBuild" } }, - "publish": { - "command": "npm publish dist/libs/state" - }, - "version": {}, - "github": {}, "lint": { "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] diff --git a/libs/template/project.json b/libs/template/project.json index 4cc8a96eb6..48bfacb642 100644 --- a/libs/template/project.json +++ b/libs/template/project.json @@ -39,11 +39,6 @@ }, "outputs": ["{workspaceRoot}/coverage/template"] }, - "publish": { - "command": "npm publish dist/libs/template" - }, - "version": {}, - "github": {}, "lint": { "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] diff --git a/nx.json b/nx.json index 6e0d526c23..a3fd10db86 100644 --- a/nx.json +++ b/nx.json @@ -99,6 +99,44 @@ ], "projectSpecificFiles": [] }, + "release": { + "projects": ["cdk", "template", "isr", "state", "eslint-plugin"], + "projectsRelationship": "independent", + "conventionalCommits": { + "types": { + "docs": { + "semverBump": "none", + "changelog": { + "title": "Documentation Changes" + }, + "chore": { + "changelog": false + } + } + } + }, + "version": { + "conventionalCommits": true, + "preVersionCommand": "npx nx run-many -t build -p cdk,template,isr,state,eslint-plugin" + }, + "releaseTag": { + "pattern": "{projectName}@{version}", + "requireSemver": true, + "strictPreid": true, + "checkAllBranchesWhen": "main" + }, + "git": { + "commit": true, + "commitMessage": "chore(release): {version}", + "tag": false + }, + "changelog": { + "projectChangelogs": { + "createRelease": "github" + }, + "workspaceChangelog": false + } + }, "targetDefaults": { "build": { "inputs": ["production", "^production"], @@ -112,52 +150,8 @@ "inputs": ["default", "^production"], "cache": true }, - "publish": { - "dependsOn": ["lint", "test", "version", "build"], - "cache": false - }, - "version": { - "executor": "@jscutlery/semver:version", - "options": { - "noVerify": true, - "baseBranch": "main", - "tagPrefix": "{projectName}@", - "commitMessageFormat": "release({projectName}): {version}", - "postTargets": ["github"], - "push": true - } - }, - "github": { - "executor": "@jscutlery/semver:github", - "options": { - "tag": "{tag}", - "notes": "{notes}" - } - }, "build-lib": { "cache": true - }, - "@nx/jest:jest": { - "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], - "cache": true, - "options": { - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true, - "codeCoverage": true - } - } - }, - "@nx/eslint:lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], - "cache": true - }, - "@angular/build:application": { - "cache": true, - "dependsOn": ["^build"], - "inputs": ["production", "^production"] } }, "parallel": 1,