Add GH_TOKEN to release job (#2292)

This commit is contained in:
Josh Mock
2024-06-20 14:18:59 -05:00
committed by GitHub
parent 7b255bed98
commit db911746a0

View File

@ -3,7 +3,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
branch: branch:
description: 'Git branch to build and publish' description: "Git branch to build and publish"
required: true required: true
jobs: jobs:
build: build:
@ -17,8 +17,8 @@ jobs:
ref: ${{ github.event.inputs.branch }} ref: ${{ github.event.inputs.branch }}
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '20.x' node-version: "20.x"
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
- run: npm install -g npm - run: npm install -g npm
- run: npm install - run: npm install
- run: npm test - run: npm test
@ -34,3 +34,4 @@ jobs:
"v$version" "v$version"
env: env:
BRANCH_NAME: ${{ github.event.inputs.branch }} BRANCH_NAME: ${{ github.event.inputs.branch }}
GH_TOKEN: ${{ github.token }}