From 963ca203239d1c12e803d6ce3d3e6e3a1fc51a8b Mon Sep 17 00:00:00 2001 From: Bartosz Burda Date: Tue, 31 Mar 2026 14:27:55 +0200 Subject: [PATCH 1/2] chore(ts): migrate npm publish from GitHub Packages to npmjs.com GitHub Packages requires authentication even for public packages, making npm install fail for anyone without a PAT configured. npmjs.com is public by default - no auth needed for install. Reset version to 0.1.0 (fresh registry, no conflict). --- .github/workflows/typescript-ci.yml | 12 +++--------- clients/typescript/package-lock.json | 4 ++-- clients/typescript/package.json | 5 +++-- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/typescript-ci.yml b/.github/workflows/typescript-ci.yml index 13bd227..4ab13bc 100644 --- a/.github/workflows/typescript-ci.yml +++ b/.github/workflows/typescript-ci.yml @@ -27,8 +27,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' - registry-url: 'https://npm.pkg.github.com' - scope: '@selfpatch' - name: Install dependencies run: npm ci @@ -53,7 +51,6 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: - packages: write contents: read defaults: run: @@ -65,8 +62,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' - registry-url: 'https://npm.pkg.github.com' - scope: '@selfpatch' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -88,11 +84,9 @@ jobs: echo "Publishing version ${PKG_VERSION}" echo "skip=false" >> "$GITHUB_OUTPUT" fi - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish to GitHub Packages + - name: Publish to npmjs if: steps.version-check.outputs.skip != 'true' run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/clients/typescript/package-lock.json b/clients/typescript/package-lock.json index 5b30fdd..dd82bd6 100644 --- a/clients/typescript/package-lock.json +++ b/clients/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@selfpatch/ros2-medkit-client-ts", - "version": "0.1.1", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@selfpatch/ros2-medkit-client-ts", - "version": "0.1.1", + "version": "0.1.0", "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^9.0.0", diff --git a/clients/typescript/package.json b/clients/typescript/package.json index 55d5e45..ff899c2 100644 --- a/clients/typescript/package.json +++ b/clients/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@selfpatch/ros2-medkit-client-ts", - "version": "0.1.1", + "version": "0.1.0", "description": "Type-safe TypeScript client for the ros2_medkit gateway", "type": "module", "main": "./dist/index.js", @@ -34,7 +34,8 @@ "typescript-eslint": "^8.0.0" }, "publishConfig": { - "registry": "https://npm.pkg.github.com" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", From 4a4eb147debc343ba0bad1af84fd6d3ff588bd04 Mon Sep 17 00:00:00 2001 From: Bartosz Burda Date: Tue, 31 Mar 2026 14:33:52 +0200 Subject: [PATCH 2/2] docs: remove GitHub Packages .npmrc setup from README No longer needed - package is published to npmjs.com (public, no auth). --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index c2fb66b..638a6e9 100644 --- a/README.md +++ b/README.md @@ -44,14 +44,6 @@ npx @stoplight/spectral-cli@6.14.2 lint spec/openapi.yaml ### Setup -Configure npm to use GitHub Packages for the `@selfpatch` scope: - -```bash -echo "@selfpatch:registry=https://npm.pkg.github.com" >> .npmrc -``` - -Install the package and its peer dependency: - ```bash npm install @selfpatch/ros2-medkit-client-ts openapi-fetch ```