Skip to content

Commit 3452ea7

Browse files
authored
Merge pull request #523 from Quramy/chore/amend_workflow
chore: Amend workflow
2 parents 9085e86 + 9134b73 commit 3452ea7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- "*"
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -21,6 +25,7 @@ jobs:
2125
uses: actions/setup-node@v4
2226
with:
2327
node-version: ${{ matrix.node-version }}
28+
registry-url: "https://registry.npmjs.org"
2429
cache: npm
2530

2631
- id: dist-tag
@@ -30,10 +35,11 @@ jobs:
3035
script: |
3136
return /^refs\/tags\/v\d+\.\d+\.\d+$/.test(context.ref) ? "latest" : "next"
3237
38+
- name: Update npm
39+
run: npm install -g npm@latest
40+
3341
- name: npm publish
3442
run: |
35-
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
36-
npm whoami
3743
npm ci
3844
npm run bootstrap
3945
npm publish --access=public --tag ${{ steps.dist-tag.outputs.result }} --workspace="packages/prisma-fabbrica"

0 commit comments

Comments
 (0)