Skip to content

deps: bump the major-dependencies group across 1 directory with 8 updates #243

deps: bump the major-dependencies group across 1 directory with 8 updates

deps: bump the major-dependencies group across 1 directory with 8 updates #243

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@v4
with:
show-progress: false
- name: βŽ” Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: πŸ“₯ Download dependencies
run: npm ci
- name: 🧼 Lint files
run: npm run lint
- name: πŸ—οΈ Build
run: npm run build
- name: βœ” Check Typescript
run: npx tsc
test-unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: βŽ” Setup Node.js
uses: actions/setup-node@v4
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@v4
with:
show-progress: false
- name: βŽ” Setup Node.js
uses: actions/setup-node@v4
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 }}