dodopayments-cli 3.5.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/pr.yml +33 -0
- package/.github/workflows/publish.yml +10 -2
- package/README.md +3 -1
- package/dist/index.js +741 -616
- package/package.json +4 -2
- package/scripts/build.ts +0 -136
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: PR Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: Build & Test
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout code
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Setup Bun
|
|
22
|
+
uses: oven-sh/setup-bun@v2
|
|
23
|
+
with:
|
|
24
|
+
bun-version: 'latest'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: bun install --frozen-lockfile
|
|
28
|
+
|
|
29
|
+
- name: Build
|
|
30
|
+
run: bun run build
|
|
31
|
+
|
|
32
|
+
- name: Test
|
|
33
|
+
run: bun test
|
|
@@ -87,6 +87,13 @@ jobs:
|
|
|
87
87
|
node-version: 20
|
|
88
88
|
registry-url: 'https://registry.npmjs.org'
|
|
89
89
|
|
|
90
|
+
|
|
91
|
+
# npm Trusted Publishing (OIDC) needs npm >= 11.5.1; the Node
|
|
92
|
+
# version above ships an older npm. Pin 11.6.2 for reproducible runs
|
|
93
|
+
# (11.5.2 fixed an OIDC/provenance ordering bug, 11.6.2 resolves
|
|
94
|
+
# trusted-publishing failures seen in the wild).
|
|
95
|
+
- name: Upgrade npm for trusted publishing
|
|
96
|
+
run: npm install -g npm@11.6.2
|
|
90
97
|
- name: Setup Bun
|
|
91
98
|
uses: oven-sh/setup-bun@v2
|
|
92
99
|
with:
|
|
@@ -123,7 +130,8 @@ jobs:
|
|
|
123
130
|
- name: Build
|
|
124
131
|
run: bun run build
|
|
125
132
|
|
|
133
|
+
- name: Test npm artifact under Node.js
|
|
134
|
+
run: bun test
|
|
135
|
+
|
|
126
136
|
- name: Publish to npm
|
|
127
|
-
env:
|
|
128
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
129
137
|
run: npm publish --provenance --access public
|
package/README.md
CHANGED
|
@@ -46,7 +46,9 @@ Manage your [Dodo Payments](https://dodopayments.com/) resources, test webhooks,
|
|
|
46
46
|
|
|
47
47
|
We provide multiple ways to install the CLI.
|
|
48
48
|
|
|
49
|
-
> **Note:**
|
|
49
|
+
> **Note:** Node.js 18+ is enough for CLI subcommands such as `dodo login`.
|
|
50
|
+
> The interactive TUI (`dodo` with no arguments) requires Bun when installed
|
|
51
|
+
> through a package manager. Standalone release binaries require neither runtime.
|
|
50
52
|
|
|
51
53
|
### Using npm
|
|
52
54
|
|