Skip to content

Update pnpm to v9

Update pnpm to v9 #326

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build and Deploy 🕛
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
environment: github-actions
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Pnpm 🧱
uses: pnpm/[email protected]
- name: Node.js 🧰
uses: actions/[email protected]
with:
node-version: latest
cache: pnpm
- name: Install && Build 🔩
run: |
pnpm i --frozen-lockfile
pnpm build
- name: Publish 📰
uses: JS-DevTools/[email protected]
if: github.ref_name == 'main'
with:
token: ${{ secrets.NPM_TOKEN }}
strategy: upgrade