Meta: Publish the rendered spec for PRs #1
Workflow file for this run
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: 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 }}. |