Replace npm with pnpm #51
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '21' | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Restore npm Packages | |
run: pnpm install | |
- name: Test | |
run: pnpm run test | |
- name: Build | |
run: pnpm run build | |
- name: Deploy GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
external_repository: gtbuchanan/gtbuchanan.github.io | |
publish_branch: main | |
publish_dir: ./build | |
enable_jekyll: true |