Skip to content

Commit e2be536

Browse files
committed
docs(gh pages): only pull latest version from tags starting with 'v'
1 parent d8e7154 commit e2be536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@
148148
.map(tag => tag.name)
149149
.filter(tag => tag.startsWith('v') && !excludedTagVersions.has(tag));
150150

151-
const latestRelease = tags.find(tag => !tag.name.includes('rc'));
152-
this.viewVersion = latestRelease.name;
151+
const latestRelease = tagOptions.find(tag => !tag.includes('rc'));
152+
this.viewVersion = latestRelease;
153153
this.versionOptions = this.versionOptions.concat(tagOptions);
154154
},
155155
async outputHtml() {

0 commit comments

Comments
 (0)