Unverified Commit 7bd24733 authored by dish's avatar dish Committed by GitHub
Browse files

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

parents 0459d520 3a7b362b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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}";
+1 −1
Original line number Diff line number Diff line
@@ -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