fix: remove unregistered packages #14
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: Deploy to vercel on merge | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- apps/docs/** | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
cache: yarn | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Deploy to Vercel | |
uses: amondnet/vercel-action@v20 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
vercel-args: "--prod" | |
vercel-org-id: ${{ secrets.ORG_ID }} | |
vercel-project-id: ${{ secrets.PROJECT_ID }} | |
working-directory: apps/docs | |
- name: Final Checkout (optional) | |
uses: actions/checkout@v2 |