Harden public package installation and release validation
Some checks failed
Release package / package (macos-latest) (push) Has been cancelled
Release package / package (ubuntu-latest) (push) Has been cancelled
Release package / package (windows-latest) (push) Has been cancelled

This commit is contained in:
oliver 2026-10-11 13:32:36 +08:00
parent 9271494b37
commit 9b2166e5b6
41 changed files with 994 additions and 363 deletions

43
.github/workflows/release-package.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: Release package
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
package:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: pnpm/action-setup@v4
with:
version: '11.7.0'
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.13'
- run: pnpm install --frozen-lockfile --ignore-scripts
# Check committed artifacts before rebuilding, so an omitted build fails CI.
- run: bun run release:check
- run: bun run bundle
- run: bun run release:check
- run: bun run test:release
- run: bun run release:pack
- uses: actions/upload-artifact@v4
with:
name: netxops-${{ matrix.os }}
path: |
*.tgz
*.tgz.sha256
if-no-files-found: error