Skip to content

chore: release main #531

chore: release main

chore: release main #531

Workflow file for this run

name: Pull Request Events
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v5
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v5
with:
node-version: lts/*
cache: npm
- name: 📥 Download dependencies
run: npm ci
- name: 🧼 Lint files
run: npm run lint
- name: ✔ Check Types and Formatting
run: npm run check
test-unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v5
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v5
with:
node-version: lts/*
cache: npm
- name: 📥 Download dependencies
run: npm ci
- name: 🏗 Run build script
run: npm run build
- name: 🧪 Run tests
run: npm test
deploy-storybook:
name: 📚 Deploy documentation
runs-on: ubuntu-latest
needs: [lint, test-unit]
if: ${{ github.event.sender.type == 'User' }}
permissions:
id-token: write
pull-requests: write
environment:
name: dev
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v5
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v5
with:
node-version: lts/*
cache: npm
- name: 🚀 Deploy
uses: agrc/firebase-website-deploy-composite-action@v1
with:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
preview: 'yes'
repo-token: ${{ secrets.GITHUB_TOKEN }}
prebuild-command: npm run build --workspace @ugrc/utilities && npm run build
build-command: npm run build:storybook
env:
VITE_QUAD_WORD: ${{ secrets.DISCOVER_QUAD_WORD }}