Error: Input required and not supplied: token

See original GitHub issue

Hi, I have problem npm-publish.yml `on: push

jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: 10 - run: npm install - run: npm test - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }}`

and Here I have problem Run JS-DevTools/npm-publish@v1 with: registry: https://registry.npmjs.org/ package: package.json tag: latest dry-run: false check-version: true Error: Error: Input required and not supplied: token at Object.getInput (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/node_modules/@actions/core/lib/core.js:94:1) at main (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/action/index.ts:17:14) at Object.48 (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/action/index.ts:74:1) at __webpack_require__ (/webpack/bootstrap:21:1) at startup (/webpack/bootstrap:40:1) at /webpack/bootstrap:44:1 at Object.<anonymous> (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/dist/index.js:50:10) at Module._compile (internal/modules/cjs/loader.js:959:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) at Module.load (internal/modules/cjs/loader.js:815:32)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:6

github_iconTop GitHub Comments

1reaction
Nurutomocommented, Jun 13, 2021

same error with this configuration

name: npm-publish
on: "workflow_dispatch"
jobs:
  npm-publish:
    name: npm-publish
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repository
      uses: actions/checkout@master
    - name: Set up Node.js
      uses: actions/setup-node@master
      with:
        node-version: 14.0.0
    - id: publish
      uses: JS-DevTools/npm-publish@v1
      with:
        token: ${{ secrets.NPM_TOKEN }}

The Error Log: https://github.com/Nurutomo/xteam-api/runs/2812373560?check_suite_focus=true

0reactions
OskarDamkjaercommented, Apr 4, 2022

I ran into this issue as well, my problem was not setting the environment key, that’s why the publish step didn’t have access to {{ secrets.NPM_TOKEN }}. More info in the github action docs here 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

error::Input required and not supplied: token · Issue #298
In summary, this error is expected if you are attempting to use a secret on a fork PR or a run triggered by...
Read more >
Github actions Error: Input required and not supplied: task ...
The problem is in the last step - Deploy Amazon ECS task definition. The problematic part is ${{ steps.task-def.outputs.task-definition ...
Read more >
GH token not supplied - Development Tools - Project Nu
I am using the offical action to add PRs and issues to a project. When it runs I get the following error: Error:...
Read more >
Error: Input required and not supplied: token - Bountysource
Error : Input required and not supplied: token.
Read more >
Github Actions Error: Input Required And Not Supplied
. fails on 0.2.22 Input required and not supplied: token. <! Make sure you are able to reproduce it on the latest version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found