Skip to content

@kulupu-linku/sona v0.1.1 #3

@kulupu-linku/sona v0.1.1

@kulupu-linku/sona v0.1.1 #3

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
- name: Publish to the npm registry
run: pnpm publish --filter '@kulupu-linku/sona' --no-git-checks --access public --tag ${{ github.event.release.prerelease && 'next' || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}