Skip to content

OpportunityClient: useSyncExternalStore replaces setState-in-effect #132

OpportunityClient: useSyncExternalStore replaces setState-in-effect

OpportunityClient: useSyncExternalStore replaces setState-in-effect #132

Workflow file for this run

name: Deploys & Previews
on:
push:
jobs:
deploy-www:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
repository-projects: write
contents: write
steps:
- uses: actions/checkout@v2
- name: Update last commit git author
run: |
git config user.email "dev@sanctuary.computer"
git config user.name "Sanctu Computer"
git commit --amend --reset-author --no-edit
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: './www/package-lock.json'
- name: Install dependencies
run: |
cd www
npm ci
# - name: Run Prettier check
# run: |
# cd www
# npm run format:check
# - name: Run ESLint
# run: |
# cd www
# npm run lint
# - name: Run Lighthouse CI
# run: |
# cd www
# npm run lighthouse
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: prj_5wJWsrSkl9yTZ3rY1DgEV7UpAtly
scope: ${{ secrets.VERCEL_ORG_ID }}
working-directory: ./www
github.qkg1.topment: ${{ github.ref != 'refs/heads/main' }}
vercel-args: ${{ github.ref == 'refs/heads/main' && '--prod' || '' }}