Skip to content

Publish to NPM

Publish to NPM #1

name: Publish to NPM
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile
- run: pnpm publish-package -- --dry-run
working-directory: ./packages/typed-binary
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}