Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,24 @@ jobs:
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
GH_TOKEN: ${{ github.token }}
steps:
- name: Validate release tag
id: release
shell: bash
run: |
if [[ ! "$RELEASE_TAG" =~ ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
echo "Invalid Cadder release tag: $RELEASE_TAG" >&2
exit 1
fi
echo "version=${RELEASE_TAG#v}" >> "$GITHUB_OUTPUT"
- name: Check out repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.0.3
with:
persist-credentials: false
ref: ${{ env.RELEASE_TAG }}
- name: Resolve release commit
id: source
shell: bash
run: echo "commit=$(git rev-parse HEAD^{commit})" >> "$GITHUB_OUTPUT"
- name: Set up Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
Expand All @@ -50,15 +64,6 @@ jobs:
test "$(node --version)" = "v24.18.0"
nub --version | grep -Fx "v0.7.5"
test "$(npm --version)" = "12.0.2"
- name: Validate release tag
id: release
shell: bash
run: |
if [[ ! "$RELEASE_TAG" =~ ^v([0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?)$ ]]; then
echo "Invalid Cadder release tag: $RELEASE_TAG" >&2
exit 1
fi
echo "version=${BASH_REMATCH[1]}" >> "$GITHUB_OUTPUT"
- name: Install package workspace
working-directory: npm
run: nub ci
Expand All @@ -73,6 +78,9 @@ jobs:
--assets "$RUNNER_TEMP/cadder-assets"
--output "$RUNNER_TEMP/cadder-npm-stage"
--version "${{ steps.release.outputs.version }}"
--source-ref "refs/tags/$RELEASE_TAG"
--source-digest "${{ steps.source.outputs.commit }}"
--signer-workflow "$GITHUB_REPOSITORY/.github/workflows/release.yml"
- name: Pack deterministic npm tarballs
run: >-
node npm/scripts/pack-release.js
Expand Down
41 changes: 28 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

name: Release
permissions:
"contents": "write"
"contents": "read"

# This task will run whenever you push a git tag that looks like a version
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
Expand Down Expand Up @@ -50,11 +50,10 @@ jobs:
runs-on: "ubuntu-22.04"
outputs:
val: ${{ steps.plan.outputs.manifest }}
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
tag-flag: ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }}
tag: ${{ steps.plan.outputs.tag }}
publishing: ${{ !github.event.pull_request }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ !github.event.pull_request && github.ref_name || '' }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
Expand All @@ -64,7 +63,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.32.0/cargo-dist-installer.sh | sh"
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.33.0/cargo-dist-installer.sh | sh"
- name: Cache dist
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
Expand All @@ -76,10 +75,20 @@ jobs:
# (PRs run on the *source* but secrets are usually on the *target* -- that's *good*
# but also really annoying to build CI around when it needs secrets to work right.)
- id: plan
shell: bash
run: |
dist ${{ (!github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)) || 'plan' }} --output-format=json > plan-dist-manifest.json
if [[ -n "$RELEASE_TAG" ]]; then
if [[ ! "$RELEASE_TAG" =~ ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
echo "Invalid Cadder release tag: $RELEASE_TAG" >&2
exit 1
fi
dist host --allow-dirty --steps=create --tag "$RELEASE_TAG" --output-format=json > plan-dist-manifest.json
else
dist plan --allow-dirty --output-format=json > plan-dist-manifest.json
fi
echo "dist ran successfully"
cat plan-dist-manifest.json
echo "tag=$RELEASE_TAG" >> "$GITHUB_OUTPUT"
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
Expand Down Expand Up @@ -110,7 +119,7 @@ jobs:
runs-on: ${{ matrix.runner }}
container: ${{ matrix.container && matrix.container.image || null }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ needs.plan.outputs.tag }}
BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json
steps:
- name: enable windows longpaths
Expand Down Expand Up @@ -144,9 +153,12 @@ jobs:
run: |
${{ matrix.packages_install }}
- name: Build artifacts
shell: bash
run: |
# Actually do builds and make zips and whatnot
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
tag_args=()
if [[ -n "$RELEASE_TAG" ]]; then tag_args=(--tag "$RELEASE_TAG"); fi
dist build --allow-dirty "${tag_args[@]}" --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
echo "dist ran successfully"
- id: cargo-dist
name: Post-build
Expand Down Expand Up @@ -176,7 +188,7 @@ jobs:
- build-local-artifacts
runs-on: "ubuntu-22.04"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ needs.plan.outputs.tag }}
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
Expand All @@ -199,7 +211,9 @@ jobs:
- id: cargo-dist
shell: bash
run: |
dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
tag_args=()
if [[ -n "$RELEASE_TAG" ]]; then tag_args=(--tag "$RELEASE_TAG"); fi
dist build --allow-dirty "${tag_args[@]}" --output-format=json "--artifacts=global" > dist-manifest.json
echo "dist ran successfully"

# Parse out what we just built and upload it to scratch storage
Expand All @@ -224,7 +238,7 @@ jobs:
# Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ needs.plan.outputs.tag }}
runs-on: "ubuntu-22.04"
outputs:
val: ${{ steps.host.outputs.manifest }}
Expand All @@ -250,7 +264,7 @@ jobs:
- id: host
shell: bash
run: |
dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json > dist-manifest.json
dist host --allow-dirty --tag "$RELEASE_TAG" --steps=upload --steps=release --output-format=json > dist-manifest.json
echo "artifacts uploaded and released successfully"
cat dist-manifest.json
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -323,8 +337,9 @@ jobs:
ANNOUNCEMENT_TITLE: "${{ fromJson(needs.host.outputs.val).announcement_title }}"
ANNOUNCEMENT_BODY: "${{ fromJson(needs.host.outputs.val).announcement_github_body }}"
RELEASE_COMMIT: "${{ github.sha }}"
RELEASE_TAG: "${{ needs.plan.outputs.tag }}"
run: |
# Write and read notes from a file to avoid quoting breaking things
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt

gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
gh release create "$RELEASE_TAG" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- Arcantry release baseline: 0.8.0 (2026-06-11). Earlier history is not reconstructed. -->

## [1.0.1] - 2026-10-03

### Fixed

<!-- openspec: harden-local-runtime-boundaries -->
#### Keep managed development routes local and isolated

Cadder now binds its shared HTTP and HTTPS listeners only to loopback, keeps every project behind its active host names, redacts the documented credential forms from retained logs, and renders diagnostic text without active terminal control sequences.

## [1.0.0] - 2026-09-15

### Added
Expand Down Expand Up @@ -63,6 +72,7 @@ Profiles, autostart, history, export, continuous log tailing and watching, machi

Cadder 1.0 does not ship installers, Homebrew or Scoop packages, crates.io packages, Authenticode signatures, or macOS notarization.

[Unreleased]: https://github.com/MrMaxie/cadder/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/MrMaxie/cadder/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/MrMaxie/cadder/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/MrMaxie/cadder/compare/v0.8.0...v1.0.0
<!-- arcantry:changelog:end -->
Loading
Loading