1 file(s) changed: +18 −0
.github/workflows/build-and-publish.yml+18 −0
| @@ -293,6 +293,24 @@ | |
| test -f capacitor/ios/Sources/SomaChatHistoryParserPlugin/SomaChatHistoryParser.swift || \ | |
| test -f swift/Sources/SomaChatHistoryParser/SomaChatHistoryParser.swift | |
| + | # Publish the plugin to the self-hosted npm registry (simplecicd). The job |
| + | # container reaches it at http://l2:18444/npm/ on the compose network. The |
| + | # registry does not authenticate, but the npm client insists on a token |
| + | # being present, so a placeholder is configured for the registry host. The |
| + | # package is scoped (@soma-community/*), so the scope is pointed at the |
| + | # registry too. Idempotent for same-day re-runs: republishing the same |
| + | # version is tolerated (|| true) rather than failing the pipeline. |
| + | - name: Publish to the package registry |
| + | working-directory: capacitor |
| + | run: | |
| + | cat > .npmrc <<'EOF' |
| + | registry=http://l2:18444/npm/ |
| + | @soma-community:registry=http://l2:18444/npm/ |
| + | //l2:18444/npm/:_authToken=ci-registry-token |
| + | EOF |
| + | npm publish --registry http://l2:18444/npm/ || \ |
| + | echo "npm publish skipped (version may already exist)" |
| + | |
| # Terminal deliverable: attach the npm tarball to the same daily release | |
| # the android .aar went to. Runs last, so nothing downstream can undo it. | |
| - name: Publish npm tarball to daily release | |