npm - release @prisma/schema-engine-wasm@7.10.0-2.d0368e25c88e68caa4d283b5f2d88d1b76ed9356 from d0368e25c88e68caa4d283b5f2d88d1b76ed9356 on latest #428
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 and publish @prisma/schema-engine-wasm | |
| run-name: npm - release @prisma/schema-engine-wasm@${{ github.event.inputs.packageVersion }} from ${{ github.event.inputs.enginesHash }} on ${{ github.event.inputs.npmDistTag }} | |
| concurrency: publish-schema-engine-wasm | |
| permissions: | |
| id-token: write # required for OIDC / Trusted Publishers | |
| on: | |
| # usually triggered via GH Actions Workflow in prisma/engines-wrapper repo | |
| workflow_dispatch: | |
| inputs: | |
| packageVersion: | |
| required: true | |
| description: 'New @prisma/schema-engine-wasm package version' | |
| enginesHash: | |
| required: true | |
| description: 'prisma-engines commit to build' | |
| npmDistTag: | |
| required: true | |
| default: 'latest' | |
| description: 'npm dist-tag (e.g. latest or integration)' | |
| jobs: | |
| build: | |
| name: Build and publish @prisma/schema-engine-wasm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Print input | |
| run: echo "${{ toJson(github.event.inputs) }}" | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.enginesHash }} | |
| - uses: ./.github/workflows/include/rust-wasm-setup | |
| - name: Build @prisma/schema-engine-wasm | |
| run: make build-se-wasm | |
| env: | |
| WASM_BUILD_PROFILE: release | |
| SCHEMA_ENGINE_WASM_VERSION: ${{ github.event.inputs.packageVersion }} | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Update npm to support Trusted Publishers | |
| run: npm install -g npm@^11.5 | |
| - name: Publish @prisma/schema-engine-wasm | |
| run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }} | |
| working-directory: schema-engine/schema-engine-wasm/pkg |