chore(main): release bridge-ui 2.9.1 #1213
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: Bridge UI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "packages/bridge-ui/**" | |
pull_request: | |
paths: | |
- "packages/bridge-ui/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm dependencies | |
uses: ./.github/actions/install-pnpm-dependencies | |
# This step is needed because the .env file is not committed to the repository | |
# and the Svelte check complains about not finding the exports from $env/static/public, | |
# which will be generated based on the .env file when running `svelte-kit sync` | |
- name: Copy .env.example to .env | |
working-directory: ./packages/bridge-ui | |
run: cp .env.example .env | |
- name: Export config to .env | |
working-directory: ./packages/bridge-ui | |
run: pnpm export:config | |
- name: Build Svelte app | |
env: | |
SKIP_ENV_VALDIATION: "true" | |
working-directory: ./packages/bridge-ui | |
run: pnpm build | |
- name: Svelte check | |
working-directory: ./packages/bridge-ui | |
run: pnpm svelte:check | |
- name: Linting | |
working-directory: ./packages/bridge-ui | |
run: pnpm lint | |
- name: Unit tests | |
env: | |
SKIP_ENV_VALDIATION: "true" | |
working-directory: ./packages/bridge-ui | |
run: pnpm test:unit | |
# TODO: Playwright tests? |