diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e206296b1..3127f6448 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,8 +42,10 @@ jobs: cache: npm - name: Install dependencies run: npm ci - - name: Execute version target on all affected packages and release them - run: npx nx affected --base=latest --target=version --parallel=1 --dryRun + - name: Execute version target + run: npx nx version @code-pushup/cli-source --dryRun + - name: Deploy to NPM + run: npx nx run-many --target=deploy --dry-run release: if: | github.repository == 'code-pushup/cli' && ( @@ -80,10 +82,11 @@ jobs: - name: Execute version target on all affected packages and release them env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} + run: npx nx version @code-pushup/cli-source + - name: Deploy to NPM + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # un-exclude packages when they're ready for public release - run: npx nx affected --base=latest --target=version --exclude=plugin-lighthouse,nx-plugin --parallel=1 - - name: Tag latest - shell: bash run: | - git tag -f latest - git push origin latest --force + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc + npx nx run-many -t=deploy --exclude=plugin-lighthouse,nx-plugin diff --git a/packages/nx-plugin/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from packages/nx-plugin/CHANGELOG.md rename to CHANGELOG.md diff --git a/nx.json b/nx.json index be66173ef..027db9d8e 100644 --- a/nx.json +++ b/nx.json @@ -18,23 +18,6 @@ }, "cache": true }, - "version": { - "executor": "@jscutlery/semver:version", - "options": { - "commitMessageFormat": "release({projectName}): {version} [skip ci]", - "tagPrefix": "{projectName}@", - "preset": "angular", - "postTargets": ["github"], - "push": true - } - }, - "github": { - "executor": "@jscutlery/semver:github", - "options": { - "tag": "{tag}", - "notes": "{notes}" - } - }, "e2e": { "dependsOn": ["^build"] }, @@ -44,6 +27,14 @@ "options": { "passWithNoTests": true } + }, + "deploy": { + "dependsOn": ["build"], + "executor": "ngx-deploy-npm:deploy", + "options": { + "access": "public", + "noBuild": true + } } }, "namedInputs": { diff --git a/package-lock.json b/package-lock.json index cb1f3b69b..80b1ba981 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,6 +77,7 @@ "lighthouse": "^11.0.0", "memfs": "^4.5.0", "moment": "^2.29.4", + "ngx-deploy-npm": "^7.1.0", "nx": "17.1.3", "prettier": "^2.6.2", "react": "^18.2.0", @@ -17293,6 +17294,19 @@ "node": ">= 0.4.0" } }, + "node_modules/ngx-deploy-npm": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/ngx-deploy-npm/-/ngx-deploy-npm-7.1.0.tgz", + "integrity": "sha512-zUv/C9giRVrhmOu3dIG3tjjN+1/bOV5xQzPGgXBZL74M5dgZo+/Dui1JxrVCZH9m8QogR4Zg+0Xq6FeXo2xKrg==", + "dev": true, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@nx/devkit": "^16.0.0 || ^17.0.0 || ^18.0.0", + "tslib": "^2.3.0" + } + }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", diff --git a/package.json b/package.json index cf6fae989..705695e6a 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "lighthouse": "^11.0.0", "memfs": "^4.5.0", "moment": "^2.29.4", + "ngx-deploy-npm": "^7.1.0", "nx": "17.1.3", "prettier": "^2.6.2", "react": "^18.2.0", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md deleted file mode 100644 index 7e3871989..000000000 --- a/packages/cli/CHANGELOG.md +++ /dev/null @@ -1,34 +0,0 @@ -# Changelog - -This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). - -# 0.1.0 (2023-11-29) - -### Bug Fixes - -- **cli:** changed persist format options to array ([#153](https://github.com/code-pushup/cli/issues/153)) ([26c6a85](https://github.com/code-pushup/cli/commit/26c6a859608447d486c5e180788077f1e7955392)), closes [#95](https://github.com/code-pushup/cli/issues/95) -- **cli:** exclude nested kebab-case keys, update tests ([741d5a5](https://github.com/code-pushup/cli/commit/741d5a545a0333ea4dc747c9ab8255fc233bab56)) -- **cli:** parse multiple config args to last item of array ([#164](https://github.com/code-pushup/cli/issues/164)) ([7c81f81](https://github.com/code-pushup/cli/commit/7c81f8113999e2bb68739cc9a6ee008e9db62bfb)), closes [#146](https://github.com/code-pushup/cli/issues/146) -- **cli:** run `npm install` before tests ([6507c2e](https://github.com/code-pushup/cli/commit/6507c2e9c2e4105144c03ef74cdfbe1e999355a7)) -- lint config and errors ([6f5f677](https://github.com/code-pushup/cli/commit/6f5f6779a37359fdde2740fa42e44e7320fa190c)) -- refactor after core package intro ([#83](https://github.com/code-pushup/cli/issues/83)) ([aa39d09](https://github.com/code-pushup/cli/commit/aa39d098c53f7de958509ad465c18b6bee5ec4b9)) -- **testing:** fix tests for Windows ([#165](https://github.com/code-pushup/cli/issues/165)) ([b80255b](https://github.com/code-pushup/cli/commit/b80255b5ed93c9cb6312d8c426a82f4b8bd1cdf3)), closes [#131](https://github.com/code-pushup/cli/issues/131) -- **utils,cli:** remove all mentions of the `interactive` option ([#245](https://github.com/code-pushup/cli/issues/245)) ([be7471e](https://github.com/code-pushup/cli/commit/be7471ee8aadf6a6a6c1af2e3ceb35e48a372759)), closes [#120](https://github.com/code-pushup/cli/issues/120) - -### Features - -- **cli:** add `--persist.filename` cli option ([#187](https://github.com/code-pushup/cli/issues/187)) ([296df7d](https://github.com/code-pushup/cli/commit/296df7df42afcb656f33a657b7d1820a75208824)) -- **cli:** disabled version option ([#162](https://github.com/code-pushup/cli/issues/162)) ([9a5371c](https://github.com/code-pushup/cli/commit/9a5371cdef6f1148d0230aaa866b4e9d3e0bdba0)), closes [#124](https://github.com/code-pushup/cli/issues/124) -- **cli:** initial collect command ([#45](https://github.com/code-pushup/cli/issues/45)) ([ba048be](https://github.com/code-pushup/cli/commit/ba048be5f3e9b4291ae6311051cda89403186795)) -- **cli:** introduce the `onlyPlugins` option ([#246](https://github.com/code-pushup/cli/issues/246)) ([13c9d26](https://github.com/code-pushup/cli/commit/13c9d26c24f3dd8bc97f62298231487d01b0ffa5)), closes [#119](https://github.com/code-pushup/cli/issues/119) -- **cli:** persist login and formatting options ([#47](https://github.com/code-pushup/cli/issues/47)) ([6241fd7](https://github.com/code-pushup/cli/commit/6241fd7412f33a8d40183b40f8ed7e39e85278dd)) -- **cli:** setup yargs for cli ([#42](https://github.com/code-pushup/cli/issues/42)) ([37ea0a5](https://github.com/code-pushup/cli/commit/37ea0a56c987ef38cf7e961d885c711b32de777a)), closes [#6](https://github.com/code-pushup/cli/issues/6) [#38](https://github.com/code-pushup/cli/issues/38) -- **cli:** use bundle-require instead of jiti (no hackfix, but also no CJS configs) ([028c592](https://github.com/code-pushup/cli/commit/028c592817b8440e0af5ce1f72e8fffde2f11314)) -- configure build and tests to handle ESM and CJS configs ([48cd967](https://github.com/code-pushup/cli/commit/48cd967866a84488e6a2382fe44687a31ca47db2)) -- **core:** add esm plugin logic ([#248](https://github.com/code-pushup/cli/issues/248)) ([18d4e3a](https://github.com/code-pushup/cli/commit/18d4e3af31bc10a55b01fc8201d83c6caf0548e3)) -- **models:** validate plugin icons using portal-client package ([f52cc75](https://github.com/code-pushup/cli/commit/f52cc75ed766e47e1d9f82fda1560e0085b3c02e)) -- support TS config files using Jiti + hackfix lighthouse import.meta usages ([3b7927d](https://github.com/code-pushup/cli/commit/3b7927d65d4607a35dc23d076e72184c281ae8f6)) -- **utils:** add file size logging ([#65](https://github.com/code-pushup/cli/issues/65)) ([c46046f](https://github.com/code-pushup/cli/commit/c46046f9756ea2d02e1d9bb7cc0bbfeff09e61a3)), closes [#59](https://github.com/code-pushup/cli/issues/59) -- **utils:** add package `utils` for cli independent logic ([#39](https://github.com/code-pushup/cli/issues/39)) ([dacaaf7](https://github.com/code-pushup/cli/commit/dacaaf74fb4795a96083ca00fd3b7ca5d3928400)), closes [#32](https://github.com/code-pushup/cli/issues/32) -- **utils:** add upload logic ([#66](https://github.com/code-pushup/cli/issues/66)) ([3e88ffc](https://github.com/code-pushup/cli/commit/3e88ffcbbe375f1fe01bdfd05c088253eeeb98d9)), closes [#21](https://github.com/code-pushup/cli/issues/21) [#57](https://github.com/code-pushup/cli/issues/57) [#85](https://github.com/code-pushup/cli/issues/85) -- **utils:** move parts from utils into core ([#81](https://github.com/code-pushup/cli/issues/81)) ([dd0a180](https://github.com/code-pushup/cli/commit/dd0a1805ddb97de14d7a4938938aa0bfd852a528)), closes [#78](https://github.com/code-pushup/cli/issues/78) diff --git a/packages/cli/project.json b/packages/cli/project.json index 1835d651f..ad168c497 100644 --- a/packages/cli/project.json +++ b/packages/cli/project.json @@ -19,8 +19,6 @@ "command": "node tools/scripts/publish.mjs cli {args.ver} {args.tag}", "dependsOn": ["build"] }, - "version": {}, - "github": {}, "lint": { "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], @@ -64,7 +62,8 @@ "cwd": "examples/react-todos-app" }, "dependsOn": ["build"] - } + }, + "deploy": {} }, "tags": ["scope:core", "type:app"] } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md deleted file mode 100644 index 3382eaa82..000000000 --- a/packages/core/CHANGELOG.md +++ /dev/null @@ -1,33 +0,0 @@ -# Changelog - -This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). - -# 0.1.0 (2023-11-29) - -### Bug Fixes - -- **core:** audit metadata looked up in plugin config, not expected in output ([31ffd5e](https://github.com/code-pushup/cli/commit/31ffd5e39cab3d5ddb997c92b7efafdc920c8359)) -- **core:** include package.json data ([0fef0c3](https://github.com/code-pushup/cli/commit/0fef0c3b784454a2ab2d9e0fb65f132e8ee8e196)) -- refactor after core package intro ([#83](https://github.com/code-pushup/cli/issues/83)) ([aa39d09](https://github.com/code-pushup/cli/commit/aa39d098c53f7de958509ad465c18b6bee5ec4b9)) -- **testing:** fix tests for Windows ([#165](https://github.com/code-pushup/cli/issues/165)) ([b80255b](https://github.com/code-pushup/cli/commit/b80255b5ed93c9cb6312d8c426a82f4b8bd1cdf3)), closes [#131](https://github.com/code-pushup/cli/issues/131) - -### Features - -- add transform to persist config ([#229](https://github.com/code-pushup/cli/issues/229)) ([ce4d975](https://github.com/code-pushup/cli/commit/ce4d975feafeea1249faf58a3acbbfc1483d8c90)) -- **cli:** add `--persist.filename` cli option ([#187](https://github.com/code-pushup/cli/issues/187)) ([296df7d](https://github.com/code-pushup/cli/commit/296df7df42afcb656f33a657b7d1820a75208824)) -- **core:** add core package ([dd8ddae](https://github.com/code-pushup/cli/commit/dd8ddaeaaf91534261f0416e15b79fe924a4a798)) -- **core:** add esm plugin logic ([#248](https://github.com/code-pushup/cli/issues/248)) ([18d4e3a](https://github.com/code-pushup/cli/commit/18d4e3af31bc10a55b01fc8201d83c6caf0548e3)) -- **core:** change to execute all plugins before throwing on failed ([#275](https://github.com/code-pushup/cli/issues/275)) ([32a6ef5](https://github.com/code-pushup/cli/commit/32a6ef55444b28ef6468eb2b38facd5f1c554a80)), closes [#159](https://github.com/code-pushup/cli/issues/159) -- **models:** add report filename option ([#174](https://github.com/code-pushup/cli/issues/174)) ([bdeab54](https://github.com/code-pushup/cli/commit/bdeab543c305d7c100762b0e490b292468eac172)) -- **models:** validate plugin icons using portal-client package ([f52cc75](https://github.com/code-pushup/cli/commit/f52cc75ed766e47e1d9f82fda1560e0085b3c02e)) -- **utils:** add scoring logic ([#133](https://github.com/code-pushup/cli/issues/133)) ([89fecbb](https://github.com/code-pushup/cli/commit/89fecbba34d78b526b065de13fdb27e522bb4c3f)) -- **utils:** add upload logic ([#66](https://github.com/code-pushup/cli/issues/66)) ([3e88ffc](https://github.com/code-pushup/cli/commit/3e88ffcbbe375f1fe01bdfd05c088253eeeb98d9)), closes [#21](https://github.com/code-pushup/cli/issues/21) [#57](https://github.com/code-pushup/cli/issues/57) [#85](https://github.com/code-pushup/cli/issues/85) -- **utils:** implement a new design for stdout ([#206](https://github.com/code-pushup/cli/issues/206)) ([84b8c28](https://github.com/code-pushup/cli/commit/84b8c281dd0f2cfdacfc25f9f7b658a81828fde0)), closes [#190](https://github.com/code-pushup/cli/issues/190) -- **utils:** implement report.md formatting ([#196](https://github.com/code-pushup/cli/issues/196)) ([346596d](https://github.com/code-pushup/cli/commit/346596dc44c7970e3a960222961ba61d0b2b646d)), closes [#148](https://github.com/code-pushup/cli/issues/148) -- **utils:** implement verbose helper logic ([#121](https://github.com/code-pushup/cli/issues/121)) ([112ebe7](https://github.com/code-pushup/cli/commit/112ebe7d1cce68872398967ffaea84c6906bafed)) -- **utils:** move parts from utils into core ([#81](https://github.com/code-pushup/cli/issues/81)) ([dd0a180](https://github.com/code-pushup/cli/commit/dd0a1805ddb97de14d7a4938938aa0bfd852a528)), closes [#78](https://github.com/code-pushup/cli/issues/78) -- **utils:** update git latest commit functionality ([#205](https://github.com/code-pushup/cli/issues/205)) ([7ec4582](https://github.com/code-pushup/cli/commit/7ec45829a34127410e972a207e37ee03bc33d09a)), closes [#192](https://github.com/code-pushup/cli/issues/192) - -### Performance Improvements - -- **utils:** improve the performance of scoring and reporting ([#212](https://github.com/code-pushup/cli/issues/212)) ([41d7c0b](https://github.com/code-pushup/cli/commit/41d7c0b442b7f73dbb0408fc704af27e4827855e)), closes [#132](https://github.com/code-pushup/cli/issues/132) diff --git a/packages/core/project.json b/packages/core/project.json index 1e6ccdb5e..9aa54a93e 100644 --- a/packages/core/project.json +++ b/packages/core/project.json @@ -15,8 +15,6 @@ "esbuildConfig": "esbuild.config.js" } }, - "version": {}, - "github": {}, "publish": { "command": "node tools/scripts/publish.mjs core {args.ver} {args.tag}", "dependsOn": ["build"] @@ -46,7 +44,8 @@ "config": "packages/core/vite.config.integration.ts", "reportsDirectory": "../../coverage/core/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:core", "type:feature"] } diff --git a/packages/models/CHANGELOG.md b/packages/models/CHANGELOG.md deleted file mode 100644 index fde7507d8..000000000 --- a/packages/models/CHANGELOG.md +++ /dev/null @@ -1,31 +0,0 @@ -# Changelog - -This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). - -# 0.1.0 (2023-11-29) - -### Bug Fixes - -- **core:** audit metadata looked up in plugin config, not expected in output ([31ffd5e](https://github.com/code-pushup/cli/commit/31ffd5e39cab3d5ddb997c92b7efafdc920c8359)) -- **models:** allow empty string as docsUrl ([1c34d92](https://github.com/code-pushup/cli/commit/1c34d923b06eec7f19bd97d93fdd109a4a40da1c)) -- **models:** increase character limit for issue message ([e6f6fc8](https://github.com/code-pushup/cli/commit/e6f6fc83ad6d4419339c64e4924abd23f7d1b3d4)) -- refactor after core package intro ([#83](https://github.com/code-pushup/cli/issues/83)) ([aa39d09](https://github.com/code-pushup/cli/commit/aa39d098c53f7de958509ad465c18b6bee5ec4b9)) -- **testing:** fix tests for Windows ([#165](https://github.com/code-pushup/cli/issues/165)) ([b80255b](https://github.com/code-pushup/cli/commit/b80255b5ed93c9cb6312d8c426a82f4b8bd1cdf3)), closes [#131](https://github.com/code-pushup/cli/issues/131) - -### Features - -- add transform to persist config ([#229](https://github.com/code-pushup/cli/issues/229)) ([ce4d975](https://github.com/code-pushup/cli/commit/ce4d975feafeea1249faf58a3acbbfc1483d8c90)) -- **cli:** add `--persist.filename` cli option ([#187](https://github.com/code-pushup/cli/issues/187)) ([296df7d](https://github.com/code-pushup/cli/commit/296df7df42afcb656f33a657b7d1820a75208824)) -- **cli:** initial collect command ([#45](https://github.com/code-pushup/cli/issues/45)) ([ba048be](https://github.com/code-pushup/cli/commit/ba048be5f3e9b4291ae6311051cda89403186795)) -- **cli:** persist login and formatting options ([#47](https://github.com/code-pushup/cli/issues/47)) ([6241fd7](https://github.com/code-pushup/cli/commit/6241fd7412f33a8d40183b40f8ed7e39e85278dd)) -- **cli:** setup yargs for cli ([#42](https://github.com/code-pushup/cli/issues/42)) ([37ea0a5](https://github.com/code-pushup/cli/commit/37ea0a56c987ef38cf7e961d885c711b32de777a)), closes [#6](https://github.com/code-pushup/cli/issues/6) [#38](https://github.com/code-pushup/cli/issues/38) -- **core:** add esm plugin logic ([#248](https://github.com/code-pushup/cli/issues/248)) ([18d4e3a](https://github.com/code-pushup/cli/commit/18d4e3af31bc10a55b01fc8201d83c6caf0548e3)) -- **models:** add isBinary field to category schema ([8b13039](https://github.com/code-pushup/cli/commit/8b130390059a9986fd06f9c9fc2415ad7963da5b)) -- **models:** add report filename option ([#174](https://github.com/code-pushup/cli/issues/174)) ([bdeab54](https://github.com/code-pushup/cli/commit/bdeab543c305d7c100762b0e490b292468eac172)) -- **models:** setup types and parser with zod ([7d5c99e](https://github.com/code-pushup/cli/commit/7d5c99e47d026167914a265941c710eed5fd84a2)) -- **models:** validate plugin icons using portal-client package ([f52cc75](https://github.com/code-pushup/cli/commit/f52cc75ed766e47e1d9f82fda1560e0085b3c02e)) -- **plugin-eslint:** implement runner logic ([0ad5445](https://github.com/code-pushup/cli/commit/0ad5445e427fd365e6e039d3aa13a3a5e7c1d47e)) -- **utils:** add package `utils` for cli independent logic ([#39](https://github.com/code-pushup/cli/issues/39)) ([dacaaf7](https://github.com/code-pushup/cli/commit/dacaaf74fb4795a96083ca00fd3b7ca5d3928400)), closes [#32](https://github.com/code-pushup/cli/issues/32) -- **utils:** add scoring logic ([#133](https://github.com/code-pushup/cli/issues/133)) ([89fecbb](https://github.com/code-pushup/cli/commit/89fecbba34d78b526b065de13fdb27e522bb4c3f)) -- **utils:** add upload logic ([#66](https://github.com/code-pushup/cli/issues/66)) ([3e88ffc](https://github.com/code-pushup/cli/commit/3e88ffcbbe375f1fe01bdfd05c088253eeeb98d9)), closes [#21](https://github.com/code-pushup/cli/issues/21) [#57](https://github.com/code-pushup/cli/issues/57) [#85](https://github.com/code-pushup/cli/issues/85) -- **utils:** implement report.md formatting ([#196](https://github.com/code-pushup/cli/issues/196)) ([346596d](https://github.com/code-pushup/cli/commit/346596dc44c7970e3a960222961ba61d0b2b646d)), closes [#148](https://github.com/code-pushup/cli/issues/148) diff --git a/packages/models/project.json b/packages/models/project.json index cf9152de9..f273bd0c7 100644 --- a/packages/models/project.json +++ b/packages/models/project.json @@ -15,8 +15,6 @@ "esbuildConfig": "esbuild.config.js" } }, - "version": {}, - "github": {}, "publish": { "command": "node tools/scripts/publish.mjs models {args.ver} {args.tag}", "dependsOn": ["build"] @@ -46,7 +44,8 @@ "config": "packages/models/vite.config.integration.ts", "reportsDirectory": "../../coverage/models/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:shared", "type:util"] } diff --git a/packages/nx-plugin/project.json b/packages/nx-plugin/project.json index ea8a915f9..27753f124 100644 --- a/packages/nx-plugin/project.json +++ b/packages/nx-plugin/project.json @@ -36,8 +36,6 @@ ] } }, - "version": {}, - "github": {}, "exec:init": { "command": "nx g ./dist/packages/nx-plugin:init", "dependsOn": ["build"] @@ -68,7 +66,8 @@ "config": "packages/nx-plugin/vite.config.integration.ts", "reportsDirectory": "../../coverage/packages/models/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:tooling", "type:feature"] } diff --git a/packages/plugin-eslint/project.json b/packages/plugin-eslint/project.json index 03e5ec551..f05e3f35c 100644 --- a/packages/plugin-eslint/project.json +++ b/packages/plugin-eslint/project.json @@ -16,8 +16,6 @@ "esbuildConfig": "esbuild.config.js" } }, - "version": {}, - "github": {}, "publish": { "command": "node tools/scripts/publish.mjs plugin-eslint {args.ver} {args.tag}", "dependsOn": ["build"] @@ -47,7 +45,8 @@ "config": "packages/plugin-eslint/vite.config.integration.ts", "reportsDirectory": "../../coverage/plugin-eslint/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:plugin", "type:feature"] } diff --git a/packages/plugin-lighthouse/CHANGELOG.md b/packages/plugin-lighthouse/CHANGELOG.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/plugin-lighthouse/project.json b/packages/plugin-lighthouse/project.json index 1bd4e3b68..214cc4a10 100644 --- a/packages/plugin-lighthouse/project.json +++ b/packages/plugin-lighthouse/project.json @@ -15,8 +15,6 @@ "esbuildConfig": "esbuild.config.js" } }, - "version": {}, - "github": {}, "lint": { "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], @@ -42,7 +40,8 @@ "config": "packages/plugin-lighthouse/vite.config.integration.ts", "reportsDirectory": "../../coverage/packages/plugin-lighthouse/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:plugin", "type:feature"] } diff --git a/packages/utils/project.json b/packages/utils/project.json index a5db81d3a..133a802b9 100644 --- a/packages/utils/project.json +++ b/packages/utils/project.json @@ -15,8 +15,6 @@ "esbuildConfig": "esbuild.config.js" } }, - "version": {}, - "github": {}, "publish": { "command": "node tools/scripts/publish.mjs utils {args.ver} {args.tag}", "dependsOn": ["build"] @@ -49,7 +47,8 @@ "config": "packages/utils/vite.config.integration.ts", "reportsDirectory": "../../coverage/utils/integration-tests" } - } + }, + "deploy": {} }, "tags": ["scope:shared", "type:util"] } diff --git a/project.json b/project.json index 085f54a1d..e334761fb 100644 --- a/project.json +++ b/project.json @@ -9,6 +9,24 @@ "config": ".verdaccio/config.yml", "storage": "tmp/local-registry/storage" } + }, + "version": { + "executor": "@jscutlery/semver:version", + "options": { + "syncVersions": true, + "preset": "angular", + "commitMessageFormat": "release: {version} [skip ci]", + "postTargets": ["github"], + "push": true, + "skipProjectChangelog": true + } + }, + "github": { + "executor": "@jscutlery/semver:github", + "options": { + "tag": "{tag}", + "notes": "{notes}" + } } } }