Skip to content

Meta: Publish the rendered spec for PRs #1

Meta: Publish the rendered spec for PRs

Meta: Publish the rendered spec for PRs #1

Workflow file for this run

name: Publish PR
on: [pull_request]
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request }}
steps:
- uses: actions/checkout@v3
- name: '[node LTS] npm install'
uses: ljharb/actions/node/install@main
with:
node-version: lts/*
- run: npm run build
- name: publish to gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
target-folder: pr/${{ github.event.number }}
- name: provide comment
uses: phulsechinmay/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
The rendered spec for this PR is available at https://tc39.es/${{ github.event.pull_request.base.repo.name }}/pr/${{ github.event.number }}.