From 5a49b50a0ebe1413246825243937123049770938 Mon Sep 17 00:00:00 2001 From: Dennis Alund Date: Thu, 22 Feb 2024 14:49:51 +0800 Subject: [PATCH] Updating workflow --- .github/workflows/build-deploy.yml | 16 ++++++++-------- functions/package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 2e7eb67..cab43dd 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -37,14 +37,14 @@ jobs: npm install -g firebase-tools@latest firebase --version - - run: npm ci --prefix functions # Use npm ci for faster installs + - run: npm ci --prefix functions # Use npm ci for faster installs - run: npm run build --prefix functions - + - name: Run testing run: npm run test:${{ matrix.type }} --prefix functions - publish: + publish: name: Publish needs: test if: github.event_name == 'push' && github.ref == 'refs/heads/main' @@ -72,15 +72,15 @@ jobs: echo "GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/service_account.json" >> $GITHUB_ENV echo ${{ secrets.FIREBASE_SA }} | base64 -d -i - > service_account.json - - run: npm ci --prefix functions + - run: npm ci --prefix functions - - run: npm run build --prefix functions + - run: npm run build --prefix functions - - run: >- + - run: >- firebase ext:dev:upload --force --stage stable - --repo https://github.com/oddbit/firebase-alerts + --local oddbit/firebase-alerts # Try to save potential log files if something went wrong @@ -90,4 +90,4 @@ jobs: with: name: debug-log-functions path: firebase-debug.log - if-no-files-found: ignore + if-no-files-found: ignore diff --git a/functions/package.json b/functions/package.json index 003377f..3c260ed 100644 --- a/functions/package.json +++ b/functions/package.json @@ -1,6 +1,6 @@ { "name": "firebase-alerts", - "version": "0.0.8", + "version": "0.0.15", "description": "Firebase alert integration with webhook push notifications to various platforms", "license": "Apache-2.0", "homepage": "https://github.com/oddbit/firebase-alerts#readme",