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
13 changes: 5 additions & 8 deletions .github/workflows/publish-to-npm-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@ 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:
persist-credentials: false
- 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions cli/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -26,7 +29,7 @@
"zod": "^4.3.6"
},
"bin": {
"r4": "./cli/main.js"
"r4": "cli/main.js"
},
"devDependencies": {
"@biomejs/biome": "^2.3.14"
Expand Down