meta: fix URL generation in the release script

This commit is contained in:
Antoine du Hamel 2022-06-07 21:01:45 +02:00
parent a95e723775
commit 9acac67882

View file

@ -4,6 +4,7 @@ import { createWriteStream, mkdirSync, readFileSync } from 'node:fs'
import { spawnSync } from 'node:child_process'
import prompts from 'prompts'
import { TARGET_BRANCH } from './config.js'
const ROOT = new URL('../../', import.meta.url)
const PACKAGES_FOLDER = new URL('./packages/', ROOT)
@ -125,7 +126,7 @@ export default async function pickSemverness (
`Here are the commits that landed on @uppy/robodog since previous release:\n\n${stdout}\n`,
)
console.log(
`Check the web UI at https://github.com/transloadit/uppy/tree/main/${encodeURI(
`Check the web UI at https://github.com/transloadit/uppy/tree/${TARGET_BRANCH}/${encodeURI(
location,
)}.`,
)