conventional-changelog-cli,elm-graphql: fix update script (#462313)

This commit is contained in:
dish
2025-11-17 15:14:19 +00:00
committed by GitHub
2 changed files with 8 additions and 2 deletions

View File

@@ -55,7 +55,13 @@ stdenv.mkDerivation (finalAttrs: {
--replace-warn '"exports": "./src/index.ts"' '"exports": "./dist/index.js"'
'';
passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script {
extraArgs = [
"--use-github-releases"
"--version-regex"
"conventional-changelog-v(.*)"
];
};
meta = {
changelog = "https://github.com/conventional-changelog/conventional-changelog/releases/tag/conventional-changelog-v${finalAttrs.version}";

View File

@@ -6,7 +6,7 @@ set -eu -o pipefail
PACKAGE_DIR=$(realpath "$(dirname "$0")")
# Update version, src and npm deps
nix-update "$UPDATE_NIX_ATTR_PATH"
nix-update "$UPDATE_NIX_ATTR_PATH" --version-regex "v(.*)"
# Update elm deps
cp "$(nix-build -A "$UPDATE_NIX_ATTR_PATH".src)/generator/elm.json" elm.json