Skip to content

Use websites key instead of bypass, refactor #1564

Use websites key instead of bypass, refactor

Use websites key instead of bypass, refactor #1564

Workflow file for this run

name: Build CI
on:
push:
branches-ignore:
- 'main'
- 'renovate/**'
jobs:
Build:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setting up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Pull environment variables
run: |
pnpm vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
pnpm vercel env pull apps/web/.env --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
pnpm vercel env pull packages/trpc/.env --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Building
run: pnpm build
- name: Run tests
run: pnpm test
- name: Package Chrome extension
run: pnpx tsx ./apps/extension/scripts/package-chrome.ts
- name: Upload Chrome extension
uses: actions/upload-artifact@v4
with:
name: chrome-extension-file
path: ./apps/extension/build/chrome-bypass-links-*.zip
- name: Upload Firefox extension
uses: actions/upload-artifact@v4
with:
name: firefox-extension-folder
path: ./apps/extension/firefox-build/