Skip to content

feat(api-service): capture agents and chat-sdk errors in Sentry fixes… #14790

feat(api-service): capture agents and chat-sdk errors in Sentry fixes…

feat(api-service): capture agents and chat-sdk errors in Sentry fixes… #14790

name: Publish NPM Packages Previews
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
on:
workflow_dispatch:
push:
branches:
- '*'
- '!prod'
jobs:
publish_preview_packages:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0
# https://vercel.com/guides/corepack-errors-github-actions
- name: Use Latest Corepack
run: |
npm install -g corepack@latest
corepack enable
- uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
with:
node-version: 22.22.1
cache: 'pnpm'
- name: Install pnpm
run: corepack enable
- name: Install dependencies
run: pnpm ci
- name: Teach Novu preview packages to work with latest dependencies
run: pnpm run packages:set-latest
- name: Build
env:
NX_NO_CLOUD: ${{ secrets.NX_CLOUD_ACCESS_TOKEN == '' && 'true' || 'false' }}
run: pnpm run preview:pkg:build
- name: Release package previews to pkg.pr.new
run: pnpm run preview:pkg:publish
if: ${{ success() }}