Skip to content

Commit

Permalink
Set up deployment to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinn committed Apr 14, 2024
1 parent de2ef24 commit 7ce0577
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@ on:
- pull_request
- push
jobs:
tests:
name: Tests
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 16
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
cache: npm
cache-dependency-path: package-lock.json
node-version: 20.x
- run: npm ci
- run: npm test
- run: npm run build
#if: github.ref == 'refs/heads/main'
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
#if: github.ref == 'refs/heads/main'

0 comments on commit 7ce0577

Please sign in to comment.