Skip to content

Commit 42489df

Browse files
TimoGlastramanuraf
authored andcommitted
ci: fix pr write permissions (openwallet-foundation-labs#106)
Signed-off-by: Timo Glastra <timo@animo.id> Signed-off-by: Manuel Rafeli <manuel.rafeli@pagopa.it>
1 parent a835e41 commit 42489df

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
name: Release Stable
1414
permissions:
1515
contents: write
16-
id-token: write # Needed for npm trusted publishing
16+
id-token: write # Needed for npm trusted publishing
17+
pull-requests: write
1718
outputs:
1819
published: ${{ steps.changesets.outputs.published }}
1920
steps:
@@ -28,9 +29,8 @@ jobs:
2829
node-version: 24
2930
cache: "pnpm"
3031

31-
# anchor to the smallest npm version supporting trusted publishing
3232
- name: Update npm
33-
run: npm install -g npm@11.5.1
33+
run: npm install -g npm@^11
3434

3535
- name: Install Dependencies
3636
run: pnpm install --frozen-lockfile
@@ -63,7 +63,7 @@ jobs:
6363
if: always() && github.event_name == 'push' && needs.release-stable.outputs.published == 'false'
6464
permissions:
6565
contents: write
66-
id-token: write # Needed for npm trusted publishing
66+
id-token: write # Needed for npm trusted publishing
6767
steps:
6868
- name: Checkout Repo
6969
uses: actions/checkout@v4
@@ -76,9 +76,8 @@ jobs:
7676
node-version: 24
7777
cache: "pnpm"
7878

79-
# anchor to the smallest npm version supporting trusted publishing
8079
- name: Update npm
81-
run: npm install -g npm@11.5.1
80+
run: npm install -g npm@^11
8281

8382
- name: Install Dependencies
8483
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)