Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ jobs:

- run: pnpm docs
- id: deploy
uses: FirebaseExtended/action-hosting-deploy@v0
uses: cloudflare/wrangler-action@v3
with:
channelId: live
target: superdispatch-ui
projectId: ${{ secrets.FIREBASE_PROJECT }}
firebaseServiceAccount: ${{ secrets.FIREBASE_HOSTING_SERVICE_ACCOUNT_JSON }}
firebaseToolsVersion: '12.9.1'
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs --project-name=web-ui-legacy --branch=main

e2e:
needs:
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ jobs:
preview:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

outputs:
deploy-url: ${{ steps.deploy.outputs.details_url }}
deploy-url: ${{ steps.deploy.outputs.deployment-url }}

steps:
- uses: superdispatch/actions/prepare-node-repo@v2
Expand All @@ -50,14 +54,17 @@ jobs:
- run: pnpm storybook:build
- run: pnpm playroom:build
- id: deploy
uses: FirebaseExtended/action-hosting-deploy@v0
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs --project-name=web-ui-legacy --branch=pr-${{ github.event.pull_request.number }}

- uses: marocchino/sticky-pull-request-comment@v3
with:
target: superdispatch-ui
channelId: ${{ github.event.number }}
repoToken: ${{ secrets.GITHUB_TOKEN }}
projectId: ${{ secrets.FIREBASE_PROJECT }}
firebaseServiceAccount: ${{ secrets.FIREBASE_HOSTING_SERVICE_ACCOUNT_JSON }}
firebaseToolsVersion: '12.9.1'
header: cloudflare-preview
message: |
Preview deployed: ${{ steps.deploy.outputs.deployment-url }}

e2e:
needs:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome.laptop/Phones/PhoneField_Disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .loki/reference/chrome.laptop/Recipes/Forms_Sign_Up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"release": "pnpm lerna publish",
"prestart": "pnpm install",
"start": "run-p storybook:start playroom:start",
"storybook:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -o docs --quiet",
"storybook:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -o docs -s public --quiet",
"storybook:start": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 5000 --ci",
"tdd": "jest --watch",
"test": "jest --coverage --forceExit",
Expand Down
19 changes: 19 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Vary: *
Cache-Control: no-store, max-age=0

/*.js
Vary: User-Agent
Cache-Control: public, max-age=31536000, immutable

/*.ico
Vary: User-Agent
Cache-Control: public, max-age=31536000, immutable

/*.woff
Vary: User-Agent
Cache-Control: public, max-age=31536000, immutable

/*.woff2
Vary: User-Agent
Cache-Control: public, max-age=31536000, immutable
1 change: 1 addition & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200