Skip to content

Commit

Permalink
ci: fix "pn: command not found"
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Apr 12, 2024
1 parent 288fc25 commit 7f71140
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/testnet-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
- name: Prepare Environment from Latest Deployment Context
run: |
test -f ./deployment-context-latest.json && cat ./deployment-context-latest.json | pn tsx contracts/utils/deployment-artifacts-to-next-env.ts > ./frontend/.env.local
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
test -f ./deployment-context-latest.json &&
cat ./deployment-context-latest.json |
pnpm tsx contracts/utils/deployment-artifacts-to-next-env.ts |
tee ./frontend/.env.local
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 7f71140

Please sign in to comment.