From 50b3d3ad484df16202c44b257ee3fd4a2542c013 Mon Sep 17 00:00:00 2001 From: Nacho Vazquez Date: Sat, 2 Mar 2024 19:14:25 -0300 Subject: [PATCH] fix: release pipeline (#34) --- packages/nx-cloudflare/project.json | 35 +++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/packages/nx-cloudflare/project.json b/packages/nx-cloudflare/project.json index 6be20e980..26dae8c60 100644 --- a/packages/nx-cloudflare/project.json +++ b/packages/nx-cloudflare/project.json @@ -36,19 +36,36 @@ ] } }, - "publish": { - "command": "node tools/scripts/publish.mjs nx-cloudflare {args.ver} {args.tag}", - "dependsOn": ["build"] + "version": { + "dependsOn": ["build"], + "executor": "@jscutlery/semver:version", + "options": { + "preset": "conventional", + "tagPrefix": "v", + "noVerify": true, + "push": true, + "preid": "beta", + "syncVersions": false, + "commitMessageFormat": "release(${projectName}): 🎸 cut release to ${version}", + "postTargets": ["nx-cloudflare:github", "nx-cloudflare:npm-publish"] + } }, - "lint": { - "executor": "@nx/eslint:lint" + "github": { + "executor": "@jscutlery/semver:github", + "options": { + "tag": "${tag}", + "notes": "${notes}" + } }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "npm-publish": { + "executor": "ngx-deploy-npm:deploy", "options": { - "jestConfig": "packages/nx-cloudflare/jest.config.ts" + "access": "public" } + }, + "publish": { + "command": "node tools/scripts/publish.mjs nx-cloudflare {args.ver} {args.tag}", + "dependsOn": ["build"] } }, "tags": ["scope:public", "type:plugin"]