Skip to content

fix/zoom

fix/zoom #19

Workflow file for this run

name: Publish to npm
on:
pull_request:
types:
- closed
branches:
- main
workflow_dispatch:
jobs:
publish:
# Only run if PR was merged (or manual dispatch)
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}