chore: wasmvm dynamic modules & libc support #63
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: pkg.pr.new | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/pkg-pr-new.yaml" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| - "packages/**" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/pkg-pr-new.yaml" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| - "packages/**" | |
| concurrency: | |
| group: pkg-pr-new-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build packages | |
| run: pnpm turbo run build | |
| - name: Build linux-x64 binary via Docker | |
| run: | | |
| cd crates/v8-runtime | |
| docker build -f docker/Dockerfile.linux-x64-gnu -o type=local,dest=npm/linux-x64-gnu . | |
| - name: Publish to pkg.pr.new | |
| run: | | |
| pnpm dlx pkg-pr-new publish \ | |
| "./packages/secure-exec" \ | |
| "./packages/secure-exec-core" \ | |
| "./packages/secure-exec-node" \ | |
| "./packages/secure-exec-browser" \ | |
| "./packages/secure-exec-python" \ | |
| "./packages/secure-exec-typescript" \ | |
| "./packages/secure-exec-v8" \ | |
| --packageManager pnpm |