This repository was archived by the owner on Jul 8, 2026. It is now read-only.
fix: improve null value handling in object type check #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Package | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-windows: | |
| name: Build Windows (.exe) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build native KV3 addon (x64) | |
| run: node scripts/build-kv3-addon.js --arch=x64 | |
| - name: Build native prop-tree addon (x64) | |
| run: node scripts/build-prop-tree-addon.js --arch=x64 | |
| - name: Run tests | |
| run: npm test | |
| - name: Build Windows installer | |
| run: npm run build:win | |
| - name: Upload to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest-build' }} | |
| name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'Latest Build' }} | |
| prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| files: dist/*.exe | |
| body: ${{ github.event.head_commit.message }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |