Skip to content

Commit acdc8a6

Browse files
authored
Fix the Release workflow and support npx (#2034)
* Fix the Release workflow * Support npx
1 parent f6a2027 commit acdc8a6

3 files changed

Lines changed: 29 additions & 9 deletions

File tree

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33
[![npm version](https://badge.fury.io/js/appstore-connect-jwt-generator-cli.svg)](https://badge.fury.io/js/appstore-connect-jwt-generator-cli)
44

5-
## Install
5+
## Useage
6+
7+
### Run using npx without global installation
8+
9+
```sh
10+
npx -y appstore-connect-jwt-generator-cli@latest \
11+
--cert "${APP_STORE_CONNECT_PRIVATE_KEY}" \
12+
--keyId "${APP_STORE_CONNECT_API_KEY_ID}" \
13+
--issuerId "${APP_STORE_CONNECT_ISSURE_ID}"
14+
```
15+
16+
### Install globally and run
617

718
```sh
819
npm i -g appstore-connect-jwt-generator-cli
@@ -14,8 +25,14 @@ or
1425
yarn global add appstore-connect-jwt-generator-cli
1526
```
1627

17-
## Usage
28+
or
29+
30+
```sh
31+
pnpm add -g appstore-connect-jwt-generator-cli
32+
```
1833

1934
```sh
20-
jwt-gen --cert ${APP_STORE_CONNECT_PRIVATE_KEY} --keyId ${APP_STORE_CONNECT_API_KEY_ID} --issuerId ${APP_STORE_CONNECT_ISSURE_ID}
35+
jwt-gen --cert "${APP_STORE_CONNECT_PRIVATE_KEY}" \
36+
--keyId "${APP_STORE_CONNECT_API_KEY_ID}" \
37+
--issuerId "${APP_STORE_CONNECT_ISSURE_ID}"
2138
```

bin/cli.js

100644100755
File mode changed.

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
"license": "MIT",
66
"private": false,
77
"homepage": "https://github.com/poad/appstore-connect-jwt-generator-cli#readme",
8+
"main": "bin/index.js",
89
"bin": {
9-
"jwt-gen": "bin/index.js"
10+
"jwt-gen": "./bin/cli.js",
11+
"appstore-jwt-gen": "./bin/cli.js"
1012
},
11-
"main": "bin/cli.js",
1213
"type": "module",
1314
"repository": {
1415
"type": "git",
1516
"url": "git+https://github.com/poad/appstore-connect-jwt-generator-cli.git"
1617
},
1718
"keywords": [
18-
"jwt",
1919
"appstore",
20+
"jwt",
21+
"api",
2022
"cli"
2123
],
24+
"preferGlobal": false,
2225
"scripts": {
2326
"test": "vitest run --silent=false --coverage --passWithNoTests",
2427
"clean": "tsc --build --clean",
@@ -55,15 +58,16 @@
5558
"vitest": "^3.2.4"
5659
},
5760
"dependencies": {
58-
"appstore-connect-jwt-generator-core": "^2.0.1",
61+
"appstore-connect-jwt-generator-core": "^2.0.2",
5962
"arg": "^5.0.2",
6063
"chalk": "^5.6.2",
6164
"chalk-template": "^1.1.2",
6265
"log4js": "^6.9.1"
6366
},
6467
"files": [
6568
"package.json",
66-
"bin/*"
69+
"bin/*",
70+
"README.md"
6771
],
6872
"exports": {
6973
".": {
@@ -74,7 +78,6 @@
7478
"engines": {
7579
"npm": "use pnpm please!",
7680
"yarn": "use pnpm please!",
77-
"pnpm": ">=8.7.1",
7881
"node": ">=22.0.0"
7982
},
8083
"publishConfig": {

0 commit comments

Comments
 (0)