Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/typescript-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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 }}
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
4 changes: 2 additions & 2 deletions clients/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions clients/typescript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading