Skip to content

build: migrate to pnpm #2177

build: migrate to pnpm

build: migrate to pnpm #2177

Workflow file for this run

name: build
on:
push:
branches:
- main
- 'renovate/**'
pull_request:
jobs:
build:
name: Node.js ubuntu-latest 16.x
runs-on: ubuntu-latest
steps:
# setup ruby environment before running jonabc/setup-licensed
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4
with:
version: '4.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.5
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build:artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: artifacts/*