docs: add Apache-2.0 license, CONTRIBUTING.md, and update README badges #1
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: Privane OSS CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| create: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| ci-build-test: | |
| name: Build and Validate Core Runtime | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js Environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-size: '20' | |
| cache: 'npm' | |
| cache-dependency-path: 'package-lock.json' | |
| - name: Install Workspace Dependencies | |
| run: npm ci | |
| - name: Run TypeScript Workspace Compilation | |
| run: npx tsc -b | |
| - name: Run Core Verification Tests | |
| run: | | |
| if [ -f "test-sandbox.js" ]; then | |
| node test-sandbox.js | |
| fi | |
| - name: Confirm Build Compilation Integrity | |
| run: echo "✓ Privane OSS packages compiled and validated with zero compilation errors." | |
| # Delayed NPM Publishing Pipeline: Staged for Manual Release | |
| publish-packages: | |
| name: Stage npm Release Package | |
| needs: ci-build-test | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Tagged Release | |
| uses: actions/checkout@v4 | |
| - name: Verify Release Tag | |
| run: | | |
| echo "Release version tagged: ${GITHUB_REF##*/}" | |
| echo "Please trigger manual publishing via local workspace script: 'npm publish' under specific packages." |