Skip to content

Commit

Permalink
Switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Feb 8, 2024
1 parent 63ad1f9 commit 07f4898
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
26 changes: 22 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,26 @@ runs:
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build package
run: yarn build
run: pnpm build
- name: Temporarily save build files
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkgsize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Package size report
uses: pkg-size/action@v1
with:
build-command: yarn build
build-command: pnpm build
display-size: uncompressed, gzip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
## Features

- **Universal** - Works in all modern browsers, [Node.js](https://nodejs.org/), and [Deno](https://deno.land/) and supports CLI usage.
- **Zero Dependencies** - Absolutely no dependencies, keeping the package tiny (24kb).
- **Tiny Size** - 12.5kb packed, 65.5kb unpacked.
- **Tested** - Greater than 98% test coverage.
- **Typed** - Out of the box TypeScript declarations.

Expand Down

0 comments on commit 07f4898

Please sign in to comment.