This repository was archived by the owner on Dec 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +63
-425
lines changed
Expand file tree Collapse file tree 6 files changed +63
-425
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch :
7+ inputs :
8+ tag :
9+ description : " Release tag to publish (e.g., v0.7.0)"
10+ required : true
11+ type : string
12+
13+ jobs :
14+ publish :
15+ runs-on : ubuntu-latest
16+ timeout-minutes : 10
17+
18+ permissions :
19+ contents : read
20+ id-token : write
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - uses : denoland/setup-deno@v2
26+ with :
27+ deno-version : 2.x
28+
29+ - name : Get version from tag
30+ id : version
31+ run : |
32+ TAG="${{ inputs.tag || github.event.release.tag_name }}"
33+ VERSION="${TAG#v}"
34+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
35+
36+ - name : Update version in deno.json
37+ run : |
38+ deno task update-version ${{ steps.version.outputs.version }}
39+
40+ - name : Publish to JSR
41+ run : deno publish --allow-dirty
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Probitas CLI
22
3+ [ ![ JSR] ( https://jsr.io/badges/@probitas/cli )] ( https://jsr.io/@probitas/cli )
34[ ![ Test] ( https://github.com/jsr-probitas/cli/actions/workflows/test.yml/badge.svg )] ( https://github.com/jsr-probitas/cli/actions/workflows/test.yml )
4- [ ![ Release Assets ] ( https://github.com/jsr-probitas/cli/actions/workflows/release-assets .yml/badge.svg )] ( https://github.com/jsr-probitas/cli/actions/workflows/release-assets .yml )
5+ [ ![ Publish ] ( https://github.com/jsr-probitas/cli/actions/workflows/publish .yml/badge.svg )] ( https://github.com/jsr-probitas/cli/actions/workflows/publish .yml )
56[ ![ codecov] ( https://codecov.io/gh/jsr-probitas/cli/graph/badge.svg )] ( https://codecov.io/gh/jsr-probitas/cli )
67
78Command-line interface for
@@ -10,21 +11,17 @@ Command-line interface for
1011
1112## Installation
1213
13- ### Using install script
14+ #### Using Deno
1415
1516``` bash
16- curl -fsSL https://raw.githubusercontent.com/jsr- probitas/cli/main/install.sh | bash
17+ deno install -grAf -n probitas jsr:@probitas /cli
1718```
1819
19- Options via environment variables:
20-
21- ``` bash
22- # Install specific version
23- curl -fsSL https://raw.githubusercontent.com/jsr-probitas/cli/main/install.sh | PROBITAS_VERSION=0.7.1 bash
24-
25- # Install to custom directory
26- curl -fsSL https://raw.githubusercontent.com/jsr-probitas/cli/main/install.sh | PROBITAS_INSTALL_DIR=/usr/local/bin bash
27- ```
20+ - ` -g ` Global install
21+ - ` -r ` Reload cache (fetch latest version)
22+ - ` -A ` All permissions
23+ - ` -f ` Force overwrite existing
24+ - ` -n probitas ` Command name
2825
2926### Using Nix
3027
Original file line number Diff line number Diff line change 11{
2+ "name" : " @probitas/cli" ,
23 "version" : " 0.0.0" ,
4+ "exports" : " ./mod.ts" ,
5+ "publish" : {
6+ "include" : [
7+ " LICENSE" ,
8+ " README.md" ,
9+ " assets/**/*" ,
10+ " deno.json" ,
11+ " deno.lock" ,
12+ " mod.ts" ,
13+ " src/**/*.ts"
14+ ]
15+ },
316 "tasks" : {
417 "check" : " deno check ./**/*.ts" ,
518 "test" : " deno test -A --parallel --shuffle" ,
619 "test:coverage" : " deno task test --coverage=.coverage" ,
720 "coverage" : " deno coverage .coverage --include='src/'" ,
821 "verify" : " deno fmt && deno lint && deno task check && deno task test" ,
922 "probitas" : " deno run -A --unstable-kv --lock ./deno.lock ./mod.ts" ,
10- "compile" : " deno run -A .scripts/compile.ts" ,
1123 "update-version" : " deno run -A .scripts/update_version.ts"
1224 },
1325 "imports" : {
You can’t perform that action at this time.
0 commit comments