docs: add light mode #1325
Workflow file for this run
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
name: Npm tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- "**/main" | |
jobs: | |
tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# This actually doesn't work from a forked repo so ignoring for now | |
# with: | |
# ref: ${{ github.event.pull_request.head.ref }} | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Run tests | |
run: yarn test | |
# This actually doesn't work from a forked repo so ignoring for now | |
# - name: Push yarn.lock update | |
# run: | | |
# git config --global user.email "[email protected]" | |
# git config --global user.name "flashlight-bot" | |
# git add yarn.lock && git diff --staged --quiet || git commit -m "chore: update yarn.lock" | |
# git push |