From bab7f8995c3bc001faf7a43c86104c71b63e1772 Mon Sep 17 00:00:00 2001 From: Nicolas Fry Date: Tue, 6 Oct 2026 22:50:13 -0400 Subject: [PATCH] ci(embed): publish @turbodocx/embed to npm on embed-v* releases @turbodocx/embed had no publish workflow, so it was skipped by the SDK release and has never reached npm. Mirror publish-js.yml: on a release tagged embed-v*, build and test the workspace, then npm publish with provenance using NPM_TOKEN. --- .github/workflows/publish-embed.yml | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/publish-embed.yml diff --git a/.github/workflows/publish-embed.yml b/.github/workflows/publish-embed.yml new file mode 100644 index 0000000..64163c8 --- /dev/null +++ b/.github/workflows/publish-embed.yml @@ -0,0 +1,53 @@ +name: Publish Embed SDK + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + if: startsWith(github.event.release.tag_name, 'embed-v') + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build -w packages/embed + + - name: Run tests + run: npm test -w packages/embed + + publish: + needs: build + runs-on: ubuntu-latest + if: startsWith(github.event.release.tag_name, 'embed-v') + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build -w packages/embed + + - name: Publish to npm + run: npm publish --workspace packages/embed --access public --provenance + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}