Merge pull request #148 from softeerbootcamp4th/feature/122-admin-user #12
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 admin preview | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ADMIN_PROJECT_ID }} | |
on: | |
push: | |
branches: | |
- "dev" | |
paths: | |
- "packages/common/**" | |
- "packages/adminPage/**" | |
- "public/**" | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: pull code to computer | |
uses: actions/checkout@v4 | |
- name: install node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: install vercel cli | |
run: npm install -g vercel | |
- name: deploy to vercel as preview | |
run: | | |
npm install | |
cd ./packages/adminPage | |
vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }} | |
vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |