Skip to content

Commit

Permalink
Updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed Feb 22, 2024
1 parent 0a12505 commit 5a49b50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -90,4 +90,4 @@ jobs:
with:
name: debug-log-functions
path: firebase-debug.log
if-no-files-found: ignore
if-no-files-found: ignore
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5a49b50

Please sign in to comment.