fix(desktop): release notes
This commit is contained in:
2
.github/workflows/desktop.release.reuse.yml
vendored
2
.github/workflows/desktop.release.reuse.yml
vendored
@@ -159,6 +159,8 @@ jobs:
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- run: yarn install
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
|
||||
@@ -145,8 +145,10 @@ export function setupUpdates(window: BrowserWindow, appState: AppState, backupsM
|
||||
|
||||
export function openChangelog(state: UpdateState): void {
|
||||
const url = 'https://github.com/standardnotes/app/releases'
|
||||
if (state.latestVersion) {
|
||||
void shell.openExternal(`${url}/tag/v${state.latestVersion}`)
|
||||
const latestVersion = state.latestVersion
|
||||
if (latestVersion) {
|
||||
const tagPath = `tag/%40standardnotes%2Fdesktop%40${latestVersion}`
|
||||
void shell.openExternal(`${url}/${tagPath}`)
|
||||
} else {
|
||||
void shell.openExternal(url)
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const parseChangelog = require('changelog-parser')
|
||||
const path = require('path')
|
||||
|
||||
const scopes = ['mobile', 'web', 'desktop', 'components']
|
||||
|
||||
@@ -6,7 +7,7 @@ async function parsePackages(packageNames) {
|
||||
let result = ''
|
||||
let index = 0
|
||||
for (const package of packageNames) {
|
||||
const parsed = await parseChangelog(`packages/${package}/CHANGELOG.md`)
|
||||
const parsed = await parseChangelog(path.join(__dirname, `../packages/${package}/CHANGELOG.md`))
|
||||
const latest = parsed.versions[0]
|
||||
if (packageNames.length > 1) {
|
||||
result += `## ${capitalizeFirstLetter(package)} Changes\n`
|
||||
|
||||
Reference in New Issue
Block a user