Skip to content

refactor: Clean up comments in App.tsx for clarity #14

refactor: Clean up comments in App.tsx for clarity

refactor: Clean up comments in App.tsx for clarity #14

Workflow file for this run

name: build-demo
on:
push:
branches: 'master'
jobs:
build_demo:
runs-on: ubuntu-latest
if: github.repository == 'nullpointerexceptionkek/prosemirror-proofread'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/cache@v3
name: Setup npm cache
with:
path: ~/.npm
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-cache-
- name: Install dependencies
run: npm install
- name: build
env:
BASE_PATH: '/prosemirror-proofread'
run: |
npm run build:demo
touch build/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: "build/"
deploy:
# Add a dependency to the build job
needs: build_demo
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1