Skip to content

Commit e731732

Browse files
Merge branch 'main' into codeowners
2 parents 929cd33 + 0e82cdd commit e731732

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build Scorecard Site
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: scorecards-site
11+
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
14+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 #v5
15+
with:
16+
node-version: 14
17+
- run: yarn install --frozen-lockfile
18+
- run: yarn build
19+
- run: yarn generate

scorecards-site/components/global/CodeGroup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ export default {
7070
},
7171
activateCodeTab(index) {
7272
this.codeTabs.forEach((tab) => {
73-
if (tab.elm) {
73+
if (tab.elm && tab.elm.classList) {
7474
tab.elm.classList.remove('theme-code-block__active')
7575
}
7676
})
77-
if (this.codeTabs[index]) {
77+
if (this.codeTabs[index] && this.codeTabs[index].elm && this.codeTabs[index].elm.classList) {
7878
this.codeTabs[index].elm.classList.add('theme-code-block__active')
7979
}
8080
},

scorecards-site/nuxt.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102

103103
sitemap: {
104104
path: '/sitemap.xml',
105-
hostname: process.env.VUE_APP_FRONTEND,
105+
hostname: process.env.VUE_APP_FRONTEND || 'http://localhost:3000',
106106
generate: true,
107107
cacheTime: 86400,
108108
trailingSlash: true,

scorecards-site/pages/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ export default {
220220
}
221221
},
222222
beforeDestroy() {
223-
this.observer.disconnect()
223+
if (this.observer) {
224+
this.observer.disconnect()
225+
}
224226
},
225227
mounted() {
226228
this.importAll(require.context('../assets/logos/', true, /\.svg$/))

0 commit comments

Comments
 (0)