From 2f000e83c1896882b9e3ecb740f016af6e829e7d Mon Sep 17 00:00:00 2001 From: oskarrough Date: Thu, 5 Feb 2026 18:11:36 +0100 Subject: [PATCH 1/4] Rely on OICD auth, not token --- .github/workflows/publish-to-npm-registry.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish-to-npm-registry.yml b/.github/workflows/publish-to-npm-registry.yml index bc5af57..8c2fefa 100644 --- a/.github/workflows/publish-to-npm-registry.yml +++ b/.github/workflows/publish-to-npm-registry.yml @@ -28,5 +28,3 @@ jobs: - run: bun run check - run: bun run test - run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 33569147437bcd9d04f20e8af7164f4fcb9ccedb Mon Sep 17 00:00:00 2001 From: oskarrough Date: Thu, 5 Feb 2026 18:17:37 +0100 Subject: [PATCH 2/4] Attempt 2 to fix publish --- .github/workflows/publish-to-npm-registry.yml | 9 ++++----- package.json | 5 ++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-to-npm-registry.yml b/.github/workflows/publish-to-npm-registry.yml index 8c2fefa..dcd207a 100644 --- a/.github/workflows/publish-to-npm-registry.yml +++ b/.github/workflows/publish-to-npm-registry.yml @@ -6,15 +6,14 @@ on: - "v*" workflow_dispatch: -permissions: {} +permissions: + id-token: write + contents: read jobs: publish: name: Publish runs-on: ubuntu-latest - permissions: - contents: read - id-token: write steps: - uses: actions/checkout@v6 with: @@ -27,4 +26,4 @@ jobs: - run: bun install --frozen-lockfile - run: bun run check - run: bun run test - - run: npm publish --provenance --access public + - run: npm publish --access public diff --git a/package.json b/package.json index 792212f..876dde7 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "CLI for Radio4000", "type": "module", "main": "cli/main.js", + "exports": { + ".": "./cli/main.js" + }, "scripts": { "format": "biome format --write", "lint": "biome lint --write", @@ -26,7 +29,7 @@ "zod": "^4.3.6" }, "bin": { - "r4": "./cli/main.js" + "r4": "cli/main.js" }, "devDependencies": { "@biomejs/biome": "^2.3.14" From 371a92d62709db6474c36510f5eab1bb3d7e0ca0 Mon Sep 17 00:00:00 2001 From: oskarrough Date: Thu, 5 Feb 2026 18:23:12 +0100 Subject: [PATCH 3/4] Attempt 3 --- .github/workflows/publish-to-npm-registry.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-npm-registry.yml b/.github/workflows/publish-to-npm-registry.yml index dcd207a..abc66c8 100644 --- a/.github/workflows/publish-to-npm-registry.yml +++ b/.github/workflows/publish-to-npm-registry.yml @@ -21,9 +21,9 @@ jobs: - uses: oven-sh/setup-bun@v2 - uses: actions/setup-node@v4 with: - node-version: lts/* + node-version: '24' registry-url: https://registry.npmjs.org - run: bun install --frozen-lockfile - run: bun run check - run: bun run test - - run: npm publish --access public + - run: npm publish --access public --provenance From 5bd8676c26ed7b73d2fc507850ab7255ae9124d4 Mon Sep 17 00:00:00 2001 From: oskarrough Date: Thu, 5 Feb 2026 18:26:25 +0100 Subject: [PATCH 4/4] Fix wrong repo --- README.md | 2 +- cli/commands/help.js | 3 +-- package.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0daa314..47f2495 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Most commands support a `--format` flag to print human-readable text, json or S ## Development ```bash -git clone git@github.com:radio4000/r4.git +git clone git@github.com:radio4000/cli.git cd r4 bun install bun link # optional for easy local dev diff --git a/cli/commands/help.js b/cli/commands/help.js index 53db3af..ea3bb55 100644 --- a/cli/commands/help.js +++ b/cli/commands/help.js @@ -98,8 +98,7 @@ FLAGS MORE Reads from v2 API with v1 fallback. Writes require v2 + auth. - https://radio4000.com - https://github.com/radio4000/r4 + https://radio4000.com - https://github.com/radio4000/cli `.trim() return help diff --git a/package.json b/package.json index 876dde7..92eaf2e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/radio4000/r4.git" + "url": "git+https://github.com/radio4000/cli.git" }, "author": "radio4000", "license": "GPL-3.0-or-later",