Skip to content

npm - release @prisma/query-compiler-wasm@7.4.0-17.57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 from 57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 on latest #524

npm - release @prisma/query-compiler-wasm@7.4.0-17.57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 from 57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 on latest

npm - release @prisma/query-compiler-wasm@7.4.0-17.57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 from 57b675f79cd26fbf702d70f9a13d2b7b2fad9dd3 on latest #524

name: Build and publish @prisma/query-compiler-wasm
run-name: npm - release @prisma/query-compiler-wasm@${{ github.event.inputs.packageVersion }} from ${{ github.event.inputs.enginesHash }} on ${{ github.event.inputs.npmDistTag }}
concurrency: publish-query-compiler-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/query-compiler-wasm package version'
enginesHash:
required: true
description: 'query-compiler commit to build'
npmDistTag:
required: true
default: 'latest'
description: 'npm dist-tag (e.g. latest or integration)'
jobs:
build:
name: Build and publish @prisma/query-compiler-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/query-compiler-wasm
run: make build-qc-wasm-fast build-qc-wasm-small
env:
QE_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/query-compiler-wasm
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }}
working-directory: query-compiler/query-compiler-wasm/pkg