fix: add installation instruction to README.md #18
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: "Continuous Deployment" | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build_and_deploy: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: "Install Pnpm" | |
uses: "pnpm/action-setup@v2" | |
with: | |
version: "latest" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "pnpm" | |
node-version: "lts/*" | |
- name: "Install the dependencies" | |
run: "pnpm install" | |
- name: "Build the app" | |
run: "pnpm build" | |
- name: "Deploy to Vercel" | |
uses: "amondnet/vercel-action@v20" | |
with: | |
github-comment: false | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
scope: "${{ secrets.VERCEL_ORG_ID }}" | |
vercel-args: "--confirm --prod" | |
vercel-org-id: "${{ secrets.VERCEL_ORG_ID }}" | |
vercel-project-id: "${{ secrets.VERCEL_PROJECT_ID }}" | |
vercel-token: "${{ secrets.VERCEL_TOKEN }}" | |
working-directory: "." |