1.118.0 #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On release | |
on: | |
release: | |
types: [released] | |
jobs: | |
test_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
## Install and test | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
- uses: actions/setup-node@master | |
with: | |
node-version: '18.20.3' | |
- run: npm ci | |
- run: npm run ci:test:rules | |
- run: echo "Test functions" | |
# run: npm run test:functions | |
- run: npm run test:actions | |
- run: npm run test:shared | |
## Deploy to production | |
- run: npm run production:deploy:rules | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | |
- run: npm run production:deploy:indexes | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | |
- run: npm run production:deploy:functions | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | |
- run: npm run production:deploy:storage-rules | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} |