Skip to content

chore: create workflow to publish to NPM #1

chore: create workflow to publish to NPM

chore: create workflow to publish to NPM #1

Workflow file for this run

name: "[CLI] Publish to NPM"
on:
push:
branches: [main]
paths:
- cli/**
workflow_dispatch:
defaults:
run:
working-directory: cli
jobs:
migrate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}