chore: update #8
This file contains 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: 🔂 Surge PR Preview 3 | |
on: | |
pull_request: | |
branches: | |
- master | |
# This is what will cancel the workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write # allow surge-preview to create/update PR comments | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- uses: hunghg255/surge-preview@master | |
id: preview_step | |
with: | |
surge_token: ${{ secrets.SURGE_TOKEN }} | |
dist: dist | |
build: | | |
npm install | |
npm run build | |
- name: Get the preview_url | |
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" |