Skip to content

Handle infinite loops gracefully. Fixes #3 (#7) #2

Handle infinite loops gracefully. Fixes #3 (#7)

Handle infinite loops gracefully. Fixes #3 (#7) #2

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run server
run: npm start &
- name: Run tests
run: npm test
- name: Build NPM package
run: npm run build
- name: Publish to Github pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d dist -u "github-actions-bot <[email protected]>" --nojekyll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}