Skip to content

test 10

test 10 #22

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "14"
- name: Move to app
run: cd app
- name: Install dependencies
run: npm install
- name: Install firebase globallt
run: npm install -g firebase-tools
- name: TS Compile
run: npm run tsc
- name: Generate documentation
run: npx typedoc
- name: Deploy documentation
run: firebase deploy --token ${{ secrets.FIREBASE_TOKEN }}
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}