Skip to content

Commit

Permalink
Switch to PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
AFCMS committed Jun 19, 2024
1 parent 882ac69 commit 9d8bbcb
Show file tree
Hide file tree
Showing 6 changed files with 8,328 additions and 21,295 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,34 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node LTS/Iron
uses: actions/setup-node@v4
with:
node-version: lts/Iron
node-version-file: .nvmrc
cache: 'pnpm'

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: npm ci
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build
19 changes: 16 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,31 @@ jobs:
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Install pnpm"
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: "Setup Node LTS/Iron"
uses: actions/setup-node@v4
with:
node-version: lts/Iron
node-version-file: .nvmrc

- name: "Install Dependencies"
run: npm ci
run: pnpm install

- name: "Build"
run: npm run build
run: pnpm run build

- name: "Upload Artifact"
uses: actions/upload-pages-artifact@v3.0.1
with:
path: "build"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,26 @@
- [**React Icons**](https://react-icons.github.io/react-icons)
- [**React Markdown**](https://github.com/remarkjs/react-markdown)
- [**Prettier**](https://prettier.io)
- [**PNPM**](https://pnpm.io)

## Usage

### Development Server

```shell
npm run start
pnpm run start
```

### Production Build

```shell
npm run build
pnpm run build
```

### Serve Production Build

```shell
npm run serve
pnpm run serve
```

### Rebuild PWA Assets
Expand Down
Loading

0 comments on commit 9d8bbcb

Please sign in to comment.