diff --git a/.github/workflows/publish-to-npm-registry.yml b/.github/workflows/publish-to-npm-registry.yml index bc5af57..abc66c8 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: @@ -22,11 +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 --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --access public --provenance 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 792212f..92eaf2e 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", @@ -12,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", @@ -26,7 +29,7 @@ "zod": "^4.3.6" }, "bin": { - "r4": "./cli/main.js" + "r4": "cli/main.js" }, "devDependencies": { "@biomejs/biome": "^2.3.14"