minor tweaks #17
This file contains 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
on: | |
push: | |
branches: | |
- 'main' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Read Node.js version from .nvmrc | |
id: nvmrc | |
uses: browniebroke/read-nvmrc-action@v1 | |
- name: Set Node.js version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '${{ steps.nvmrc.outputs.node_version }}' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm t | |
deploy: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: bitovi/[email protected] | |
with: | |
path: apps/react/dist |