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 f8d64fa
Show file tree
Hide file tree
Showing 2 changed files with 15 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'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ktane-helper",
"version": "0.1.0",
"homepage": ".",
"private": true,
"dependencies": {
"prop-types": "^15.8.1",
Expand Down

0 comments on commit f8d64fa

Please sign in to comment.