re-added bogo sort, updated last name, package bumps #100
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: Deploy to github pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
Check_and_Publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Read the pnpm version from the `.pnpmrc` file | |
- name: Read .pnpmrc | |
id: pnpm_version | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./.pnpmrc | |
- name: Cache PNPM modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}- | |
- uses: pnpm/[email protected] | |
with: | |
version: '${{ steps.pnpm_version.outputs.content }}' | |
# Read node version from `.nvmrc` file | |
- id: nvmrc | |
uses: browniebroke/read-nvmrc-action@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
# use the output from the action | |
node-version: '${{ steps.nvmrc.outputs.node_version }}' | |
- name: Install `node_modules` | |
run: pnpm install | |
- name: Lint Check | |
run: pnpm checks | |
- name: Build | |
run: pnpm build | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist |