Skip to content

Commit 6432089

Browse files
committed
[v:1.0.0] added prospector repo and sync config. lets go!
1 parent 2cc9224 commit 6432089

20 files changed

Lines changed: 1380 additions & 713 deletions

.github/workflows/publish.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
inputs:
8+
triggered-by:
9+
description: "What triggered this workflow"
10+
required: false
11+
type: string
12+
default: "manual"
13+
dep-map:
14+
description: "JSON map of dependencies to update"
15+
required: false
16+
type: string
17+
default: "{}"
18+
pre-build-script:
19+
description: "Custom script to run before build"
20+
required: false
21+
default: ""
22+
type: string
23+
additional-deps:
24+
description: "Additional build dependencies to install"
25+
required: false
26+
default: ""
27+
type: string
28+
version-increment:
29+
description: "Version increment type (patch, minor, major, prerelease)"
30+
required: false
31+
default: "patch"
32+
type: string
33+
node-version:
34+
description: "Node.js version to use"
35+
required: false
36+
default: "24"
37+
type: string
38+
access:
39+
description: "Package access level (public, restricted)"
40+
required: false
41+
default: "public"
42+
type: string
43+
44+
jobs:
45+
publish:
46+
uses: arcmantle/github-workflows/.github/workflows/pnpm-publish.yml@main
47+
with:
48+
triggered-by: ${{ inputs.triggered-by }}
49+
dep-map: ${{ inputs.dep-map }}
50+
pre-build-script: ${{ inputs.pre-build-script }}
51+
additional-deps: ${{ inputs.additional-deps }}
52+
version-increment: ${{ inputs.version-increment }}
53+
node-version: ${{ inputs.node-version }}
54+
access: ${{ inputs.access }}
55+
secrets:
56+
NPM_PUBLISH: ${{ secrets.NPM_PUBLISH }}

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Full history for git operations
18+
19+
- uses: pnpm/action-setup@v3
20+
with:
21+
version: 8
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Run tests
32+
run: pnpm test run
33+
34+
- name: Build
35+
run: pnpm build
36+
37+
- name: Test CLI
38+
run: |
39+
node dist/bin.js --version || node dist/bin.js
40+
node dist/bin.js --detailed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2025 arcmantle
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)