chore: migrate deprecated RxJS operator #38
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on merge | |
"on": | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: Preview | |
url: ${{ steps.deploy.outputs.details_url }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v4 | |
- name: Print node/npm/yarn info | |
id: info | |
run: | | |
node_ver=$( node --version ) | |
yarn_ver=$( yarn --version ) | |
echo "Node: ${node_ver:1}" | |
echo "NPM: $( npm --version )" | |
echo "Yarn: $yarn_ver" | |
echo "node_version=${node_ver:1}" >> $GITHUB_OUTPUT | |
echo "yarn_version=${yarn_ver}" >> $GITHUB_OUTPUT | |
echo "cache_dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Use yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.info.outputs.cache_dir }} | |
key: ${{ runner.os }}-node-${{ steps.info.outputs.node_version }}-yarn-${{ steps.info.outputs.yarn_version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ steps.info.outputs.node_version }}-yarn-${{ steps.info.outputs.yarn_version }}- | |
- name: Install dependencies | |
run: yarn install --immutable | |
# - run: npm install -g firebase-tools | |
- name: Build web | |
run: yarn build | |
# FIXME: need firebase token | |
# - run: yarn dbrules | |
# - run: yarn functions | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_INVITION_STORYPOINTER }}" | |
channelId: live | |
projectId: invition-storypointer |