Error: Input required and not supplied: token
See original GitHub issueHi, 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:
- Created 3 years ago
- Reactions:7
- Comments:6
Top GitHub Comments
same error with this configuration
The Error Log: https://github.com/Nurutomo/xteam-api/runs/2812373560?check_suite_focus=true
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 😄