Skip to content

tech: migrate to pnpm #91

tech: migrate to pnpm

tech: migrate to pnpm #91

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16.14
cache: 'pnpm'
- name: Install dependencies
run: pnpm --frozen-lockfile
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Publish
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release