Skip to content

Publish package to npm #6

Publish package to npm

Publish package to npm #6

Workflow file for this run

name: Publish package to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Publish
run: pnpm publish --filter ./packages/tuono
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}