Skip to content

Configure PNPM publish (#73) #31

Configure PNPM publish (#73)

Configure PNPM publish (#73) #31

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm recursive install
- name: Build packages
run: pnpm build:packages
- name: Publish all packages
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" && pnpm publish:packages
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}