rename Serial types to JSON types #501
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: Main | |
on: [push] | |
jobs: | |
build_publish: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Cache firebase emulators | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/firebase/emulators | |
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('~/.cache/firebase/emulators/**') }} | |
- run: npm i -g firebase-tools | |
- run: npm i | |
- run: npm run lint | |
- run: npm run tsc | |
- run: npm test | |
env: | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
- run: npm run build | |
- run: npm run link | |
- run: npm run b-tsc | |
- run: npm run b-test | |
env: | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
- uses: codecov/codecov-action@v3 | |
- run: npm publish || true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: npm run p-i | |
- run: npm run p-tsc | |
- run: npm run p-test | |
env: | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
- run: npm run build-cjs | |
- run: npm publish --tag cjs || true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |