Skip to content

Commit 40b2f88

Browse files
ci: add contents write permission for nuget releases (#398)
Co-authored-by: Dion Gionet Mallet <dgionetmallet@devolutions.net>
1 parent 099ce5b commit 40b2f88

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release-nugets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
runs-on: ubuntu-22.04
1818
permissions:
1919
id-token: write
20+
contents: write
2021

2122
steps:
2223
- uses: actions/checkout@v6

.github/workflows/release-others.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ jobs:
129129
env:
130130
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
131131

132+
- name: Setup Node
133+
if: ${{ inputs.publish_npm }}
134+
uses: actions/setup-node@v4
135+
with:
136+
node-version: 22
137+
registry-url: https://registry.npmjs.org
138+
132139
- name: Publish NPM Bundler
133140
if: ${{ inputs.publish_npm }}
134141
working-directory: ./devolutions-crypto-npm/bundler

0 commit comments

Comments
 (0)