Skip to content

Commit

Permalink
Update to use PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 15, 2024
1 parent 2a8a568 commit fec4b69
Show file tree
Hide file tree
Showing 2 changed files with 6,451 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,31 @@ jobs:
with:
node-version: '18'

# Set NPM cache options
- name: Set NPM cache
uses: actions/cache@v3
# Install pnpm
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
version: 8

# Gets pnpm's store directory (for next step)
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
# Update NPM to the latest version
- name: Update NPM installation
run: npm install -g npm@latest
# Set pnpm cache options
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install NPM dependencies
- name: Install NPM dependencies
run: npm ci
# Install pnpm dependencies
- name: Install pnpm dependencies
run: pnpm i --frozen-lockfile

# Actually build everything
- name: Build
Expand Down
Loading

0 comments on commit fec4b69

Please sign in to comment.