Skip to content

Commit

Permalink
Update build command in GitHub workflows and fix Firebase analytics c…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
arbisyarifudin committed Mar 12, 2024
1 parent e0ca979 commit 99c7691
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
2 changes: 1 addition & 1 deletion plugins/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineNuxtPlugin(nuxtApp => {

if (process.env.NODE_ENV === 'production') {
const analytics = getAnalytics(app);
if (analytics.isSupported()) {
if (analytics) {
console.log('firebase analytics initialized');
}
} else {
Expand Down

0 comments on commit 99c7691

Please sign in to comment.