Skip to content

Commit 2020848

Browse files
committed
Merge remote-tracking branch 'origin/main' into next
2 parents 978ba84 + 46b8397 commit 2020848

4 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/publish-prisma-schema-wasm.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ run-name: npm - release @prisma/prisma-schema-wasm@${{ github.event.inputs.engin
33

44
concurrency: publish-prisma-schema-wasm
55

6+
permissions:
7+
id-token: write # required for OIDC / Trusted Publishers
8+
69
on:
710
# usually triggered via GH Actions Workflow in prisma/engines-wrapper repo
811
workflow_dispatch:
@@ -42,9 +45,8 @@ jobs:
4245
with:
4346
node-version: '20.x'
4447

45-
# This is needed to be done manually because of `PACKAGE_DIR` used later
46-
- name: Set up NPM token for publishing later
47-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
48+
- name: Update npm to support Trusted Publishers
49+
run: npm install -g npm@^11.5
4850

4951
- name: Publish @prisma/prisma-schema-wasm
5052
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }}

.github/workflows/publish-query-compiler-wasm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ run-name: npm - release @prisma/query-compiler-wasm@${{ github.event.inputs.pack
33

44
concurrency: publish-query-compiler-wasm
55

6+
permissions:
7+
id-token: write # required for OIDC / Trusted Publishers
8+
69
on:
710
# usually triggered via GH Actions Workflow in prisma/engines-wrapper repo
811
workflow_dispatch:
@@ -42,8 +45,8 @@ jobs:
4245
with:
4346
node-version: '20.x'
4447

45-
- name: Set up NPM token for publishing
46-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
48+
- name: Update npm to support Trusted Publishers
49+
run: npm install -g npm@^11.5
4750

4851
- name: Publish @prisma/query-compiler-wasm
4952
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }}

.github/workflows/publish-schema-engine-wasm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ run-name: npm - release @prisma/schema-engine-wasm@${{ github.event.inputs.packa
33

44
concurrency: publish-schema-engine-wasm
55

6+
permissions:
7+
id-token: write # required for OIDC / Trusted Publishers
8+
69
on:
710
# usually triggered via GH Actions Workflow in prisma/engines-wrapper repo
811
workflow_dispatch:
@@ -43,8 +46,8 @@ jobs:
4346
with:
4447
node-version: '20.x'
4548

46-
- name: Set up NPM token for publishing
47-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
49+
- name: Update npm to support Trusted Publishers
50+
run: npm install -g npm@^11.5
4851

4952
- name: Publish @prisma/schema-engine-wasm
5053
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"name": "@prisma/query-compiler-wasm",
33
"version": "0.0.0",
4-
"type": "module"
4+
"type": "module",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/prisma/prisma-engines",
8+
"directory": "query-compiler/query-compiler-wasm"
9+
}
510
}

0 commit comments

Comments
 (0)