64c498a97a
- .npmrc routes the @insignia scope to https://git.lynkedup.cloud/api/packages/insignia/npm/ (auth via ${GITEA_TOKEN} env — no secret committed). - The 9 frontend SDK packages (contracts, kernel-client, adapter-sdk, *-web) are now publishable: private dropped, version 0.1.0, publishConfig pinned to Gitea. iios-service and iios-testkit stay private (pnpm publish skips them). - Root `release` / `release:dry` scripts; a Gitea Actions workflow publishes on a v* tag. - PUBLISHING.md documents publish + consumer (.npmrc) setup. Verified: dry-run packs cleanly and workspace:* deps resolve to 0.1.0 in the tarball. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
809 B
YAML
28 lines
809 B
YAML
name: publish-sdks
|
|
|
|
# Publish the @insignia/iios-* SDK packages to the Gitea npm registry on a version tag.
|
|
# Requires: Gitea Actions enabled + a runner, and a repo secret GITEA_PUBLISH_TOKEN
|
|
# (a token with `write:package` scope for the `insignia` org).
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm -r build
|
|
- run: pnpm -r publish --no-git-checks
|
|
env:
|
|
# maps to ${GITEA_TOKEN} in .npmrc; private packages (service, testkit) are skipped
|
|
GITEA_TOKEN: ${{ secrets.GITEA_PUBLISH_TOKEN }}
|