Skip to content

Publish UI package to GitHub registry #3

Publish UI package to GitHub registry

Publish UI package to GitHub registry #3

name: Publish UI package to GitHub registry
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-github:
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: Add .npmrc
run: |
echo "registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Publish to GitHub
run: npm publish --scope=@internxt --registry=https://npm.pkg.github.com --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}