Skip to content

chore: standardize rc tooling and docs #15

chore: standardize rc tooling and docs

chore: standardize rc tooling and docs #15

Workflow file for this run

name: Surge Preview

Check failure on line 1 in .github/workflows/surge-preview.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/surge-preview.yml

Invalid workflow file

(Line: 26, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SURGE_TOKEN != '', (Line: 31, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SURGE_TOKEN != '', (Line: 41, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SURGE_TOKEN == ''
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
checks: write
statuses: write
jobs:
preview:
runs-on: ubuntu-latest
env:
PREVIEW: true
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Build preview
if: ${{ secrets.SURGE_TOKEN != '' }}
run: |
npm install
npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ secrets.SURGE_TOKEN != '' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
surge_token: ${{ env.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: docs-dist
failOnError: false
setCommitStatus: false
- name: Skip Surge preview
if: ${{ secrets.SURGE_TOKEN == '' }}
run: echo "SURGE_TOKEN is not configured; skip Surge preview."