update - invoke option #17
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: skeet-utils | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/utils/**' | |
- '.github/workflows/website-skeet-utils.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20.11.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- id: auth | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.SKEET_GCP_SA_KEY }} | |
- name: Install firebase tools | |
run: pnpm add -g firebase-tools | |
- name: GitHub repository setting | |
run: git config --global url."https://github.com".insteadOf ssh://[email protected] | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build App | |
run: pnpm -F utils build-doc | |
env: | |
NODE_OPTIONS: --max-old-space-size=8192 | |
- name: Deploy to Firebase | |
run: firebase deploy --only hosting:skeet-utils |