Skip to content

Commit db91174

Browse files
authored
Add GH_TOKEN to release job (#2292)
1 parent 7b255be commit db91174

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
inputs:
55
branch:
6-
description: 'Git branch to build and publish'
6+
description: "Git branch to build and publish"
77
required: true
88
jobs:
99
build:
@@ -17,8 +17,8 @@ jobs:
1717
ref: ${{ github.event.inputs.branch }}
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: '20.x'
21-
registry-url: 'https://registry.npmjs.org'
20+
node-version: "20.x"
21+
registry-url: "https://registry.npmjs.org"
2222
- run: npm install -g npm
2323
- run: npm install
2424
- run: npm test
@@ -34,3 +34,4 @@ jobs:
3434
"v$version"
3535
env:
3636
BRANCH_NAME: ${{ github.event.inputs.branch }}
37+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)