From 3c15dae3414960866fb1d28db6d4e84e93b20aba Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Tue, 11 Jun 2024 12:37:20 +0100 Subject: [PATCH] docs: fix archive script labels and change to variable to nextVersion (#10119) --- docs/static/archived-versions.json | 2 +- misc/release/archive-version.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/static/archived-versions.json b/docs/static/archived-versions.json index d0dea6d740..2524268bda 100644 --- a/docs/static/archived-versions.json +++ b/docs/static/archived-versions.json @@ -1,6 +1,6 @@ [ { - "label": "1.106.1", + "label": "v1.106.1", "url": "https://v1.106.1.archive.immich.app" }, { diff --git a/misc/release/archive-version.js b/misc/release/archive-version.js index eb77f273e0..3ef4f58b1e 100755 --- a/misc/release/archive-version.js +++ b/misc/release/archive-version.js @@ -1,8 +1,8 @@ #! /usr/bin/env node const { readFileSync, writeFileSync } = require('node:fs'); -const lastVersion = process.argv[2]; -if (!lastVersion) { +const nextVersion = process.argv[2]; +if (!nextVersion) { console.log('Usage: archive-version.js '); process.exit(1); } @@ -10,7 +10,7 @@ if (!lastVersion) { const filename = './docs/static/archived-versions.json'; const oldVersions = JSON.parse(readFileSync(filename)); const newVersions = [ - { label: lastVersion, url: `https://v${lastVersion}.archive.immich.app` }, + { label: `v${nextVersion}`, url: `https://v${nextVersion}.archive.immich.app` }, ...oldVersions, ];