Skip to content

Commit

Permalink
[Releases] adding cwd and removing -e from script
Browse files Browse the repository at this point in the history
  • Loading branch information
dgattey committed Oct 8, 2023
1 parent 1e2abcf commit 1c5f056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: vercel pull --yes --environment=production --token=${{ env.VERCEL_DEPLOY_TOKEN }}
run: vercel pull --yes --cwd apps/web --environment=production --token=${{ env.VERCEL_DEPLOY_TOKEN }}
- name: Build Project Artifacts with latest version
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: |
echo "Latest tag: ${LATEST_TAG}"
vercel build --prod --token=${{ env.VERCEL_DEPLOY_TOKEN }} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" -e NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}"
vercel build --prod --cwd apps/web --token=${{ env.VERCEL_DEPLOY_TOKEN }} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}"
env:
LATEST_TAG: ${{ steps.latest-version-tag.outputs.tag }}
- name: Deploy Project Artifacts to Vercel
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: vercel deploy --prebuilt --prod --token=${{ env.VERCEL_DEPLOY_TOKEN }}
run: vercel deploy --prebuilt --prod --cwd apps/web --token=${{ env.VERCEL_DEPLOY_TOKEN }}

0 comments on commit 1c5f056

Please sign in to comment.