Skip to content

Updated CalendarRemove Icon #474

Updated CalendarRemove Icon

Updated CalendarRemove Icon #474

name: "Deploy PROD Storybook (component-library)"
on:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: storybook-prod-deploy
cancel-in-progress: true
jobs:
build-and-deploy:
name: "Build and deploy Storybook"
runs-on: "ubuntu-latest"
environment:
name: prod
url: https://components.bcc.no
defaults:
run:
shell: bash
working-directory: ./component-library
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22.22
cache-dependency-path: "component-library/pnpm-lock.yaml"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run build-storybook
- id: "auth"
uses: "google-github-actions/auth@v3"
with:
workload_identity_provider: ${{ vars.GCP_WIDPP_ID_PROD }}
service_account: sa-gha-cicd@${{vars.GCP_PROJECT_ID}}.iam.gserviceaccount.com
project_id: ${{ vars.GCP_PROJECT_ID }}
- name: Set target hosting site
run: |
cat <<'EOF' > .firebaserc
{
"projects": {},
"targets": {
"${{ vars.GCP_PROJECT_ID }}": {
"hosting": {
"default": [
"${{ vars.FIREBASE_HOSTING_SITE_ID }}"
]
}
}
},
"etags": {}
}
EOF
- run: pnpm add -g firebase-tools
- name: Deploy hosting site
run: firebase deploy --only hosting --project "${{ vars.GCP_PROJECT_ID }}"