Skip to content

Commit

Permalink
Use Vercel for previews
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Apr 17, 2023
1 parent bb77bd0 commit 8045a32
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/repl-artefacts.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
node-version: 14
- name: Install dependencies
run: npm ci --ignore-scripts
run: npm ci --ignore-scripts && npm install @actions/core
- name: Build artefacts
run: npm run build:cjs && npm run build:bootstrap
- name: Upload "${{ github.event.number }}/rollup.browser.js" to bucket
Expand Down Expand Up @@ -74,14 +74,15 @@ jobs:
or load it into the REPL:
https://rollupjs.org/repl/?pr=${{ github.event.number }}
- name: Update comment for Netlify deploy
uses: jakepartusch/wait-for-netlify-action@v1
id: waitForNetlify
- name: Update comment for Vercel deploy
uses: patrickedqvist/wait-for-vercel-preview@v1
id: waitForVercel
with:
site_name: "rollupjs"
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 60
- name: Update comment for Netlify
uses: peter-evans/create-or-update-comment@v3
if: ${{ steps.waitForNetlify.outputs.url }}
if: ${{ steps.waitForVercel.outputs.url }}
with:
comment-id: ${{ steps.createInitialComment.outputs.comment-id }}
issue-number: ${{ github.event.number }}
Expand All @@ -96,4 +97,4 @@ jobs:
```
or load it into the REPL:
${{ steps.waitForNetlify.outputs.url }}/repl/?pr=${{ github.event.number }}
${{ steps.waitForVercel.outputs.url }}/repl/?pr=${{ github.event.number }}

0 comments on commit 8045a32

Please sign in to comment.