1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-01 16:46:54 +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": "bloom@${version}",
"tagMatch": "bloom@*",
"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

@ -9,7 +9,8 @@
"!dist/tsconfig.tsbuildinfo"
],
"scripts": {
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'"
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"release": "release-it"
},
"peerDependencies": {
"@redis/client": "^5.1.1"

View File

@ -1,11 +1,13 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "client@${version}",
"tagMatch": "client@*",
"commitMessage": "Release ${tagName}",
"tagAnnotation": "Release ${tagName}"
},
"npm": {
"versionArgs": ["--workspaces-update=false"],
"publishArgs": ["--access", "public"]
"tagAnnotation": "Release ${tagName}",
"commitArgs": "--all"
}
}

View File

@ -9,7 +9,8 @@
"!dist/tsconfig.tsbuildinfo"
],
"scripts": {
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'"
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"release": "release-it"
},
"dependencies": {
"cluster-key-slot": "1.1.2"

View File

@ -1,11 +1,22 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "entraid@${version}",
"tagMatch": "entraid@*",
"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

@ -14,7 +14,8 @@
"start:auth-pkce": "tsx --tsconfig tsconfig.samples.json ./samples/auth-code-pkce/index.ts",
"start:interactive-browser": "tsx --tsconfig tsconfig.samples.json ./samples/interactive-browser/index.ts",
"test-integration": "mocha -r tsx --tsconfig tsconfig.integration-tests.json './integration-tests/**/*.spec.ts'",
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'"
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"release": "release-it"
},
"dependencies": {
"@azure/identity": "^4.7.0",

View File

@ -1,11 +1,22 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "json@${version}",
"tagMatch": "json@*",
"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

@ -9,7 +9,8 @@
"!dist/tsconfig.tsbuildinfo"
],
"scripts": {
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'"
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"release": "release-it"
},
"peerDependencies": {
"@redis/client": "^5.1.1"

View File

@ -1,7 +1,27 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "redis@${version}",
"tagMatch": "redis@*",
"commitMessage": "Release ${tagName}",
"tagAnnotation": "Release ${tagName}"
"tagAnnotation": "Release ${tagName}",
"commitArgs": "--all"
},
"plugins": {
"@release-it/bumper": {
"out": {
"file": "package.json",
"path": [
"dependencies.@redis/client",
"dependencies.@redis/bloom",
"dependencies.@redis/json",
"dependencies.@redis/search",
"dependencies.@redis/time-series"
]
}
}
}
}

View File

@ -9,6 +9,9 @@
"dist/",
"!dist/tsconfig.tsbuildinfo"
],
"scripts": {
"release": "release-it"
},
"dependencies": {
"@redis/bloom": "5.1.1",
"@redis/client": "5.1.1",

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"

View File

@ -1,11 +1,22 @@
{
"npm": {
"publish": true,
"publishArgs": ["--access", "public"]
},
"git": {
"tagName": "time-series@${version}",
"tagMatch": "time-series@*",
"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

@ -9,7 +9,8 @@
"!dist/tsconfig.tsbuildinfo"
],
"scripts": {
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'"
"test": "nyc -r text-summary -r lcov mocha -r tsx './lib/**/*.spec.ts'",
"release": "release-it"
},
"peerDependencies": {
"@redis/client": "^5.1.1"