x-axis labels include years and are at the starts of months (#79) #251
This file contains hidden or 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: Deploy to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://rn-versions.github.io/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache .yarn/cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn --immutable | |
env: | |
HUSKY: 0 | |
- name: Run build | |
run: yarn build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build |