Bump antd and _document.tsc to support antd SSR in old nextjs #42
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: "Prod deploy" | |
on: push | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# https://dev.to/mattpocock/how-to-cache-nodemodules-in-github-actions-with-yarn-24eh | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
# - name: Cache playwright binaries | |
# uses: actions/cache@v3 | |
# id: playwright-cache | |
# with: | |
# # keep the version in key in sync with package.json | |
# path: | | |
# ~/.cache/ms-playwright | |
# key: cache-playwright-linux-1.27.1 | |
- run: yarn --frozen-lockfile | |
# - name: Install Playwright | |
# if: steps.playwright-cache.outputs.cache-hit != 'true' | |
# run: npx playwright install --with-deps | |
- run: yarn lint | |
- run: yarn test:ci | |
# - run: yarn test:e2e | |
deploy: | |
name: Deploy to Vercel | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: "Deploy to Vercel" | |
run: | | |
prodRun="" | |
if [[ ${GITHUB_REF} == "refs/heads/main" ]]; then | |
prodRun="--prod" | |
fi | |
npx vercel --token ${VERCEL_TOKEN} $prodRun | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} |