Skip to content

Commit 076afd7

Browse files
authored
Merge pull request #6 from radio4000/fix/npm-publish
Rely on OICD auth, not token
2 parents a1cd93f + 5bd8676 commit 076afd7

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/publish-to-npm-registry.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,24 @@ on:
66
- "v*"
77
workflow_dispatch:
88

9-
permissions: {}
9+
permissions:
10+
id-token: write
11+
contents: read
1012

1113
jobs:
1214
publish:
1315
name: Publish
1416
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1817
steps:
1918
- uses: actions/checkout@v6
2019
with:
2120
persist-credentials: false
2221
- uses: oven-sh/setup-bun@v2
2322
- uses: actions/setup-node@v4
2423
with:
25-
node-version: lts/*
24+
node-version: '24'
2625
registry-url: https://registry.npmjs.org
2726
- run: bun install --frozen-lockfile
2827
- run: bun run check
2928
- run: bun run test
30-
- run: npm publish --provenance --access public
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- run: npm publish --access public --provenance

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Most commands support a `--format` flag to print human-readable text, json or S
3737
## Development
3838

3939
```bash
40-
git clone git@github.com:radio4000/r4.git
40+
git clone git@github.com:radio4000/cli.git
4141
cd r4
4242
bun install
4343
bun link # optional for easy local dev

cli/commands/help.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ FLAGS
9898
9999
MORE
100100
Reads from v2 API with v1 fallback. Writes require v2 + auth.
101-
https://radio4000.com
102-
https://github.com/radio4000/r4
101+
https://radio4000.com - https://github.com/radio4000/cli
103102
`.trim()
104103

105104
return help

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "CLI for Radio4000",
55
"type": "module",
66
"main": "cli/main.js",
7+
"exports": {
8+
".": "./cli/main.js"
9+
},
710
"scripts": {
811
"format": "biome format --write",
912
"lint": "biome lint --write",
@@ -12,7 +15,7 @@
1215
},
1316
"repository": {
1417
"type": "git",
15-
"url": "git+https://github.com/radio4000/r4.git"
18+
"url": "git+https://github.com/radio4000/cli.git"
1619
},
1720
"author": "radio4000",
1821
"license": "GPL-3.0-or-later",
@@ -26,7 +29,7 @@
2629
"zod": "^4.3.6"
2730
},
2831
"bin": {
29-
"r4": "./cli/main.js"
32+
"r4": "cli/main.js"
3033
},
3134
"devDependencies": {
3235
"@biomejs/biome": "^2.3.14"

0 commit comments

Comments
 (0)