Skip to content

Commit

Permalink
Fix npm-token input
Browse files Browse the repository at this point in the history
  • Loading branch information
fingerartur committed Nov 28, 2023
1 parent 3ab7c24 commit 4b67f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/publish/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const core = require('@actions/core')

const version = core.getInput('version', {required: true})
const dryRun = core.getBooleanInput('dry-run')
const NPM_TOKEN = core.getBooleanInput('npm-token')
const npmToken = core.getInput('npm-token', {required: true})

const regexBetaVersion = /^\d+\.\d+\.\d+-(\w+)\.\d+$/
const regexVersion = /^\d+\.\d+\.\d+$/
Expand All @@ -35,5 +35,5 @@ const args = [
'--provenance'
].filter(Boolean).join(' ')

execSync(`export NPM_TOKEN=${NPM_TOKEN}; npm publish ${args}`, { stdio: 'inherit' })
execSync(`export NPM_TOKEN=${npmToken}; npm publish ${args}`, { stdio: 'inherit' })
process.exit(0);

0 comments on commit 4b67f61

Please sign in to comment.