fix(ci): deployment config overrided by pull-request #5
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: Deployment | |
on: | |
push: | |
env: | |
ASTRO_TELEMETRY_DISABLED: true | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set up nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check project styles | |
run: pnpm check | |
- name: Check project styles | |
run: pnpm check | |
- name: Pull environment information | |
run: pnpm prod:setup --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build artifacts | |
run: pnpm build | |
- name: Deploy artifacts | |
run: pnpm prod:deploy --token=${{ secrets.VERCEL_TOKEN }} |