forked from prisma/prisma-engines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joël Galeran <[email protected]>
- Loading branch information
Showing
19 changed files
with
93 additions
and
93 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Build and publish @prisma/prisma-fmt-wasm | ||
name: Build and publish @prisma/prisma-schema-wasm | ||
|
||
concurrency: build-prisma-fmt-wasm | ||
concurrency: build-prisma-schema-wasm | ||
|
||
on: | ||
# usually triggered via GH Actions Workflow in prisma/engines-wrapper repo | ||
|
@@ -12,16 +12,16 @@ on: | |
required: true | ||
npmDistTag: | ||
required: true | ||
default: 'latest' | ||
default: "latest" | ||
|
||
jobs: | ||
build: | ||
name: Build and publish @prisma/prisma-fmt-wasm | ||
name: Build and publish @prisma/prisma-schema-wasm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print input | ||
env: | ||
THE_INPUT: '${{ toJson(github.event.inputs) }}' | ||
THE_INPUT: "${{ toJson(github.event.inputs) }}" | ||
run: | | ||
echo $THE_INPUT | ||
|
@@ -34,21 +34,21 @@ jobs: | |
# Build | ||
# | ||
|
||
- run: nix build .#prisma-fmt-wasm | ||
- run: nix build .#prisma-schema-wasm | ||
|
||
# | ||
# Publish | ||
# | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
node-version: "14.x" | ||
|
||
- name: Set up NPM token | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- run: | | ||
PACKAGE_DIR=$( nix run .#renderPrismaFmtWasmPackage ${{ github.event.inputs.enginesWrapperVersion }}) | ||
PACKAGE_DIR=$( nix run .#renderPrismaSchemaWasmPackage ${{ github.event.inputs.enginesWrapperVersion }}) | ||
npm publish "$PACKAGE_DIR" --access public --tag ${{ github.event.inputs.npmDistTag }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -65,6 +65,6 @@ jobs: | |
if: ${{ failure() }} | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_TITLE: 'prisma-fmt-wasm publishing failed :x:' | ||
SLACK_COLOR: '#FF0000' | ||
SLACK_TITLE: "prisma-schema-wasm publishing failed :x:" | ||
SLACK_COLOR: "#FF0000" | ||
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 |
---|---|---|
|
@@ -45,4 +45,4 @@ dev_datamodel.prisma | |
dmmf.json | ||
graph.dot | ||
|
||
prisma-fmt-wasm/nodejs | ||
prisma-schema-wasm/nodejs |
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "prisma-fmt-build" | ||
name = "prisma-schema-build" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
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
8 changes: 4 additions & 4 deletions
8
prisma-fmt-wasm/package.json → prisma-schema-wasm/package.json
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "@prisma/prisma-fmt-wasm", | ||
"name": "@prisma/prisma-schema-wasm", | ||
"version": null, | ||
"description": "The WASM package for prisma-fmt", | ||
"main": "src/prisma_fmt_build.js", | ||
"main": "src/prisma_schema_build.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/prisma/prisma-engines", | ||
"directory": "prisma-fmt-wasm" | ||
"directory": "prisma-schema-wasm" | ||
}, | ||
"author": "Prisma", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/prisma/prisma-engines" | ||
} | ||
} |
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...t-wasm/scripts/syncWasmBindgenVersions.sh → ...a-wasm/scripts/syncWasmBindgenVersions.sh
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo 'Syncing wasm-bindgen version in crate with that of the installed CLI...' | ||
sed -i "s/^wasm-bindgen\ =.*$/wasm-bindgen = \"=$WASM_BINDGEN_VERSION\"/" ./prisma-fmt-wasm/Cargo.toml | ||
sed -i "s/^wasm-bindgen\ =.*$/wasm-bindgen = \"=$WASM_BINDGEN_VERSION\"/" ./prisma-schema-wasm/Cargo.toml | ||
cargo update --package wasm-bindgen |
Oops, something went wrong.