Skip to content
Discussion options

You must be logged in to vote

/* Fetch version */
requestJSON<Release>(`${url}/releases/latest`)
.pipe(
map(release => ({
version: release.tag_name
})),
defaultIfEmpty({})
),

Note that we can only fetch the latest release, not tag. GitHub doesn't expose an API for obtaining the latest tag.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pawamoy
Comment options

pawamoy Jan 7, 2022
Author Sponsor

@yajo
Comment options

@squidfunk
Comment options

Answer selected by pawamoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants