Skip to content

Commit 92b9a94

Browse files
committed
chore: Update release workflow
1 parent 6b2b152 commit 92b9a94

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
type: boolean
88
required: true
99
default: false
10+
11+
permissions:
12+
contents: write
13+
id-token: write
14+
1015
jobs:
1116
build_x86_x64:
1217
strategy:
@@ -177,11 +182,11 @@ jobs:
177182
steps:
178183
- uses: actions/setup-node@v4
179184
with:
185+
# Required minimum Node version for Trusted Publishing is 24.5.0.
186+
node-version: 24.x
180187
registry-url: 'https://registry.npmjs.org'
181188
- uses: actions/download-artifact@v4
182189
with:
183190
name: npm-module
184191
- run: echo -e "PKG_NAME=$(ls -1A *.tgz | head -n 1)" >> "$GITHUB_ENV"
185192
- run: npm publish --access=public ${PKG_NAME}
186-
env:
187-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AGENT_NPM_TOKEN }}

0 commit comments

Comments
 (0)