🔧 chore(package.json): remove esbuild dependency to simplify the proj… #16
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 staging apps | |
on: | |
push: | |
branches: | |
- staging | |
workflow_dispatch: | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
jobs: | |
deploy-staging: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up environment and cache dependencies | |
uses: sebpalluel/ci/.github/actions/setup-environment@latest | |
- name: Cache Vercel CLI | |
uses: actions/cache@v2 | |
id: cache-vercel | |
with: | |
path: ~/.npm # adjust this path if needed | |
key: vercel-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Vercel CLI | |
run: | | |
if [ -z "$(npm list -g --depth=0 | grep vercel)" ] | |
then | |
npm install --global vercel@latest | |
fi | |
- name: Vercel Environment Information | |
run: vercel pull --yes --environment=preview --git-branch=staging --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Staging to Vercel | |
id: deploy_vercel | |
run: vercel deploy --token=${{secrets.VERCEL_TOKEN}} |