From 111188dcc9400b6f8aecfd22cdf2622131bc57c5 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sat, 16 Sep 2023 05:39:24 +0300 Subject: [PATCH] ci: update vercel pipelines preview: comment prod: should be fixed --- .github/workflows/preview.yml | 14 ++++++++------ .github/workflows/publish.yml | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 2294132e..a7778e33 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -8,6 +8,7 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 @@ -15,9 +16,10 @@ jobs: fetch-depth: 0 - name: Install Global Dependencies run: npm install --global vercel pnpm - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + - uses: amondnet/vercel-action@v25 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} + vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} + alias-domains: ${{ secrets.TEST_PREVIEW_DOMAIN}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8c5a79b4..512dc55b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,7 @@ name: Deploy to GitHub pages +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} on: push: branches: [main]