-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into quote-traceparentcomment
- Loading branch information
Showing
200 changed files
with
582 additions
and
364 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,14 @@ on: | |
inputs: | ||
enginesWrapperVersion: | ||
required: true | ||
description: 'New @prisma/prisma-schema-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: | ||
|
@@ -50,14 +53,14 @@ jobs: | |
# | ||
# Failure handlers | ||
# | ||
|
||
- name: Set current job url in SLACK_FOOTER env var | ||
if: ${{ failure() }} | ||
run: echo "SLACK_FOOTER=<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|Click here to go to the job logs>" >> $GITHUB_ENV | ||
- name: Slack Notification on Failure | ||
if: ${{ failure() }} | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_TITLE: 'prisma-schema-wasm publishing failed :x:' | ||
SLACK_TITLE: 'Building and publishing @prisma/prisma-schema-wasm failed :x:' | ||
SLACK_COLOR: '#FF0000' | ||
SLACK_CHANNEL: feed-prisma-schema-wasm-publish-failures | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WASM_FAILING }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build and publish @prisma/query-engine-wasm | ||
run-name: npm - release @prisma/query-engine-wasm@${{ github.event.inputs.packageVersion }} from ${{ github.event.inputs.enginesHash }} on ${{ github.event.inputs.npmDistTag }} | ||
|
||
concurrency: publish-query-engine-wasm | ||
|
||
on: | ||
# usually triggered via GH Actions Workflow in prisma/engines-wrapper repo | ||
workflow_dispatch: | ||
inputs: | ||
packageVersion: | ||
required: true | ||
description: 'New @prisma/query-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/query-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 }} | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: wasm32-unknown-unknown | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Install wasm-pack | ||
run: cargo install wasm-pack | ||
|
||
- name: Build @prisma/query-engine-wasm | ||
run: ./build.sh ${{ github.event.inputs.packageVersion }} | ||
working-directory: ./query-engine/query-engine-wasm | ||
|
||
- name: Set up NPM token for publishing | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: Publish @prisma/query-engine-wasm | ||
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }} | ||
working-directory: ./query-engine/query-engine-wasm/pkg | ||
|
||
# | ||
# Failure handlers | ||
# | ||
- name: Set current job url in SLACK_FOOTER env var | ||
if: ${{ failure() }} | ||
run: echo "SLACK_FOOTER=<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|Click here to go to the job logs>" >> $GITHUB_ENV | ||
- name: Slack Notification on Failure | ||
if: ${{ failure() }} | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_TITLE: 'Building and publishing @prisma/query-engine-wasm failed :x:' | ||
SLACK_COLOR: '#FF0000' | ||
SLACK_CHANNEL: feed-prisma-query-engine-wasm-publish-failures | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WASM_FAILING }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ mod prisma_7010; | |
mod prisma_7072; | ||
mod prisma_7434; | ||
mod prisma_8265; | ||
mod prisma_engines_4286; |
Oops, something went wrong.