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
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ name: Publish to npm
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: Existing release tag to rebuild assets for
required: true
type: string

permissions:
contents: read
id-token: write

jobs:
publish:
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down Expand Up @@ -64,6 +71,10 @@ jobs:
with:
node-version: 24
- run: pnpm install --frozen-lockfile
- name: Verify target release matches package version
env:
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
run: node -e "const t=process.env.RELEASE_TAG,v=require('./apps/cli/package.json').version;if(t!=='v'+v)throw new Error('Release '+t+' does not match v'+v)"
- name: Run CLI test suite
run: pnpm test
- name: Build SEA binary
Expand Down Expand Up @@ -106,6 +117,7 @@ jobs:
- name: Attach binaries + manifest to the release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.release.tag_name || inputs.release_tag }}
files: |
artifacts/sealdrop-*
artifacts/checksums.txt
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"typecheck": "tsc --noEmit",
"test": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --maxWorkers=1"
"test": "vitest run"
},
"devDependencies": {
"@types/node": "^25.9.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/crypto/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
execArgv: ["--max-old-space-size=8192"],
maxWorkers: 1,
},
});