conventional-changelog-cli,elm-graphql: fix update script (#462313)
This commit is contained in:
@@ -55,7 +55,13 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
--replace-warn '"exports": "./src/index.ts"' '"exports": "./dist/index.js"'
|
--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 = {
|
meta = {
|
||||||
changelog = "https://github.com/conventional-changelog/conventional-changelog/releases/tag/conventional-changelog-v${finalAttrs.version}";
|
changelog = "https://github.com/conventional-changelog/conventional-changelog/releases/tag/conventional-changelog-v${finalAttrs.version}";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ set -eu -o pipefail
|
|||||||
PACKAGE_DIR=$(realpath "$(dirname "$0")")
|
PACKAGE_DIR=$(realpath "$(dirname "$0")")
|
||||||
|
|
||||||
# Update version, src and npm deps
|
# Update version, src and npm deps
|
||||||
nix-update "$UPDATE_NIX_ATTR_PATH"
|
nix-update "$UPDATE_NIX_ATTR_PATH" --version-regex "v(.*)"
|
||||||
|
|
||||||
# Update elm deps
|
# Update elm deps
|
||||||
cp "$(nix-build -A "$UPDATE_NIX_ATTR_PATH".src)/generator/elm.json" elm.json
|
cp "$(nix-build -A "$UPDATE_NIX_ATTR_PATH".src)/generator/elm.json" elm.json
|
||||||
|
|||||||
Reference in New Issue
Block a user