Skip to content

Upgrade dependencies #104

Upgrade dependencies

Upgrade dependencies #104

Workflow file for this run

name: Web Preview
on:
push:
branches:
- dev
paths:
- apps/web/**/*
pull_request:
jobs:
main:
runs-on: ubuntu-latest
environment:
name: web-preview
url: ${{ steps.cloudflare-publish.outputs.url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build web
run: bun run build
working-directory: apps/web
- name: Publish to Cloudflare Pages
id: cloudflare-publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: sharemystack-web
directory: public
workingDirectory: apps/web
wranglerVersion: 3
branch: dev # TODO: remove after moving to dev branch for real