Skip to content

Merge pull request #1182 from openameba/refactor/spindle-icon-imports #380

Merge pull request #1182 from openameba/refactor/spindle-icon-imports

Merge pull request #1182 from openameba/refactor/spindle-icon-imports #380

name: deploy UI catalog
on:
push:
branches:
- main
paths:
- 'packages/spindle-ui/**'
jobs:
deploy_ui_catalog:
name: deploy_ui_catalog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: restore lerna
uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-v2
- run: yarn install --frozen-lockfile
- name: Update UI catalog
run: |
yarn lerna run --scope @openameba/spindle-hooks build
yarn lerna run --scope @openameba/spindle-ui storybook:build
- name: deploy to live channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
entryPoint: ./packages/spindle-ui/
channelId: live