Upgrade dependencies #95
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: 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 |