Skip to content

Publish package

Publish package #2

Workflow file for this run

name: Publish schemas to npm
on:
release:
types: [published]
jobs:
publish_to_npm:
runs-on: ubuntu-latest
name: Publish package to the npm registry
defaults:
run:
working-directory: ./schemas
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- uses: simenandre/publish-with-pnpm@v2
with:
npm-auth-token: ${{ secrets.NPM_TOKEN }}