fix/wallet-connection #1
This file contains hidden or 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: pr - nextjs | |
| on: "pull_request" | |
| jobs: | |
| nextjs: | |
| runs-on: ubuntu-latest | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: 14 | |
| - name: "Install vercel" | |
| run: npm i -g vercel | |
| - name: "Deploy to vercel" | |
| id: deploy | |
| run: | | |
| prodRun="" | |
| echo "::set-output name=DEPLOYMENT_URL::$(vercel --confirm -t $VERCEL_TOKEN --scope $VERCEL_ORG_ID)" | |
| - name: "comment deployment url" | |
| uses: thollander/actions-comment-pull-request@v1 | |
| with: | |
| message: "Preview url is ${{ steps.deploy.outputs.DEPLOYMENT_URL }}" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |