Skip to content

add subscription flow #283

add subscription flow

add subscription flow #283

Workflow file for this run

name: Deploy to Preview Channel
on:
pull_request:
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron
- name: Install dependencies
run: npm ci
- name: Quality check
run: |
npm run eslint
npm run prettier
npm test
env:
CI: true
- name: Build
run: |
npm run build
env:
CI: true
VITE_APIKEY: ${{ secrets.FIREBASE_WEB_API_KEY_DEV }}
VITE_AUTHDOMAIN: "coreofscience-dev.firebaseapp.com"
VITE_DATABASEURL: "https://coreofscience-dev.firebaseio.com"
VITE_PROJECTID: "coreofscience-dev"
VITE_STORAGEBUCKET: "coreofscience-dev.appspot.com"
VITE_MESSAGINGSENDERID: "421154467745"
VITE_APPID: "1:421154467745:web:d7dd5ed17243869ba765e0"
VITE_MEASUREMENTID: "G-N2245DYRQN"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COREOFSCIENCE_DEV }}"
expires: 30d
projectId: dev