Skip to content

Publish UI package to NPM registry #4

Publish UI package to NPM registry

Publish UI package to NPM registry #4

Workflow file for this run

name: Publish UI package to NPM registry
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: yarn
- name: Install dependencies
run: yarn install
- name: Build package
run: yarn build
- name: Publish to NPM
run: npm publish --scope=@internxt --registry=https://registry.npmjs.org/ --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}