refactor: rename utils to lib, fix api #9
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: Deploy to Cloudflare Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deployment: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: ./.github/actions/pnpm | |
- name: Install dependencies | |
run: | | |
pnpm i --frozen-lockfile --filter client --filter utils | |
- name: Build packages | |
run: | | |
pnpm --filter utils build && \ | |
pnpm --filter client build | |
env: | |
VITE_API_URL: https://api.teemukoivisto.xyz/sveltekit-monorepo | |
- name: Build & test | |
uses: ./.github/actions/e2e | |
- name: Publish site to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
projectName: sveltekit-monorepo-template | |
directory: ./packages/client/build |