2 parents 9085e86 + 9134b73 commit 3452ea7Copy full SHA for 3452ea7
1 file changed
.github/workflows/publish.yml
@@ -5,6 +5,10 @@ on:
5
tags:
6
- "*"
7
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
+
12
jobs:
13
publish:
14
runs-on: ubuntu-latest
@@ -21,6 +25,7 @@ jobs:
21
25
uses: actions/setup-node@v4
22
26
with:
23
27
node-version: ${{ matrix.node-version }}
28
+ registry-url: "https://registry.npmjs.org"
24
29
cache: npm
30
31
- id: dist-tag
@@ -30,10 +35,11 @@ jobs:
35
script: |
36
return /^refs\/tags\/v\d+\.\d+\.\d+$/.test(context.ref) ? "latest" : "next"
32
37
38
+ - name: Update npm
39
+ run: npm install -g npm@latest
40
33
41
- name: npm publish
34
42
run: |
- echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
- npm whoami
43
npm ci
44
npm run bootstrap
45
npm publish --access=public --tag ${{ steps.dist-tag.outputs.result }} --workspace="packages/prisma-fabbrica"
0 commit comments