1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Automate release (#2977)

* release-it/bumper

* remove git:false

* fix package ordering

* adjust git add

* fix git config

* adjust git config for all packages

* add noop release script for test-utils

* no need to try to release root

* better way to handle skipping

* pass parameters down

* better version hint

* update node version

* return git arguments from before

* rename release workflow

* rename workflow

* set git.tagMatch

* add link to docs

* update description

* update workspace order in package-lock

* fix secondary releases

release-it/bumper was removing the ^ before the peerDep to client
npm is not happy with that. one potential fix would be to bump all
packages together as a prestep and then proceed without bupming again.
for now, this fix should bring us to the previous state ( what was used
in the manual process )

* require clean working dir in root

* remove root release-it config

not needed
This commit is contained in:
Nikolay Karadzhov
2025-06-04 10:52:14 +03:00
committed by GitHub
parent 20c16e0c2c
commit b33a662e50
17 changed files with 1641 additions and 2679 deletions

View File

@@ -1,11 +1,22 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "search@${version}",
"tagMatch": "search@*",
"commitMessage": "Release ${tagName}",
"tagAnnotation": "Release ${tagName}"
"tagAnnotation": "Release ${tagName}",
"commitArgs": "--all"
},
"npm": {
"versionArgs": ["--workspaces-update=false"],
"publishArgs": ["--access", "public"]
"plugins": {
"@release-it/bumper": {
"out": {
"file": "package.json",
"path": ["peerDependencies.@redis/client"],
"versionPrefix": "^"
}
}
}
}

View File

@@ -10,7 +10,8 @@
],
"scripts": {
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"test-sourcemap": "mocha -r ts-node/register/transpile-only './lib/**/*.spec.ts'"
"test-sourcemap": "mocha -r ts-node/register/transpile-only './lib/**/*.spec.ts'",
"release": "release-it"
},
"peerDependencies": {
"@redis/client": "^5.1.1"